Skip to content

Commit

Permalink
Fix MockBlockVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed Sep 18, 2024
1 parent 1fa1ce9 commit 6a28f2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Src/Tests/Bitcoin/Blockchain/MockBlockVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Autarkysoft.Bitcoin.Blockchain;
using Autarkysoft.Bitcoin.Blockchain.Blocks;
using System;
using Xunit;

namespace Tests.Bitcoin.Blockchain
{
Expand Down Expand Up @@ -74,7 +73,7 @@ public bool Verify(IBlock block, out string error)
internal BlockHeader[] expHeaders;
internal Target[] expTargets;
internal bool[] verifyHeaderResults;
public bool VerifyHeader(BlockHeader header, Target expectedTarget)
public bool VerifyHeader(in BlockHeader header, Target expectedTarget)
{
Assert.True(hdrIndex < expHeaders.Length, Helper.UnexpectedCall);
Assert.Equal(expHeaders[hdrIndex].Hash, header.Hash);
Expand Down

0 comments on commit 6a28f2e

Please sign in to comment.