Skip to content

Commit

Permalink
Small bug fix on compact encode.r
Browse files Browse the repository at this point in the history
  • Loading branch information
rodoufu committed Nov 11, 2018
1 parent de42314 commit 90ac9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NeoDataStructure/MerklePatriciaTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static byte[] CompactEncode(this byte[] hexarray)
var o = new List<byte>();
for (var i = 0; i < hexarray.Length; i += 2)
{
o.Append((byte) (16 * hexarray[i] + hexarray[i + 1]));
o.Add((byte) (16 * hexarray[i] + hexarray[i + 1]));
}

return o.ToArray();
Expand Down

0 comments on commit 90ac9a0

Please sign in to comment.