Skip to content

Commit

Permalink
Merge pull request #5 from KickSeason/stateroot
Browse files Browse the repository at this point in the history
value node hash
  • Loading branch information
zhangtao authored Mar 11, 2020
2 parents dd9d6a5 + ab4b684 commit 316cee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/Trie/MPT/MPTNode/ValueNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ValueNode : MPTNode
protected override byte[] GenHash()
{
var data = this.Encode();
return data.Length < 32 ? (byte[])data.Clone() : Crypto.Default.Hash256(data);
return Crypto.Default.Hash256(data);
}

public ValueNode()
Expand Down

0 comments on commit 316cee6

Please sign in to comment.