Skip to content

Commit

Permalink
Write the transaction count in the anchor as an unsigned integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavien committed Oct 18, 2015
1 parent 5240429 commit 8ac5ef4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task RecordAnchor(LedgerAnchor anchor)
{
byte[] anchorPayload =
anchorMarker
.Concat(BitConverter.GetBytes(anchor.TransactionCount).Reverse())
.Concat(BitConverter.GetBytes((ulong)anchor.TransactionCount).Reverse())
.Concat(anchor.FullStoreHash.ToByteArray())
.ToArray();

Expand Down

0 comments on commit 8ac5ef4

Please sign in to comment.