Skip to content

Commit

Permalink
Update MerkleBlockPayload.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Dec 22, 2019
1 parent fcbf8f8 commit 0a724f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/neo/Network/P2P/Payloads/MerkleBlockPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public static MerkleBlockPayload Create(Block block, BitArray flags)
public override void Deserialize(BinaryReader reader)
{
base.Deserialize(reader);
ContentCount = (int)reader.ReadVarInt(Block.MaxTransactionsPerBlock);
Hashes = reader.ReadSerializableArray<UInt256>(Block.MaxTransactionsPerBlock);
Flags = reader.ReadVarBytes((Block.MaxTransactionsPerBlock + 7) / 8);
ContentCount = (int)reader.ReadVarInt(Block.MaxTransactionsPerBlock + 1);
Hashes = reader.ReadSerializableArray<UInt256>(ContentCount);
Flags = reader.ReadVarBytes((ContentCount + 7) / 8);
}

public override void Serialize(BinaryWriter writer)
Expand Down

0 comments on commit 0a724f0

Please sign in to comment.