Skip to content

Commit

Permalink
fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangTao1596 committed Feb 12, 2020
1 parent 40f3b7d commit bd2db12
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/neo/Trie/MPT/MPTDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MPTDatabase

public static readonly byte[] Prefix = Encoding.ASCII.GetBytes("MPT");

public static readonly byte[] ROOT_KEY = Encoding.ASCII.GetBytes("mpt_root");
public static readonly byte[] ROOT_KEY = Encoding.ASCII.GetBytes("MPT_ROOT");

private byte[] StoreKey(byte[] hash)
{
Expand Down
1 change: 0 additions & 1 deletion src/neo/Trie/MPT/MPTTrie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ private void GetProof(ref MPTNode node, byte[] path, Dictionary<byte[], byte[]>
{
if (hashNode.IsEmptyNode) break;
node = Resolve(hashNode.Hash);
dict.Add(node.GetHash(), node.Encode());
GetProof(ref node, path, dict);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/neo/Trie/Trie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public interface ITrie
{
bool TryGet(byte[] path, out byte[] value);

bool TryPut(byte[] path, byte[] value);
bool Put(byte[] path, byte[] value);

bool TryDelete(byte[] path);

Expand Down

0 comments on commit bd2db12

Please sign in to comment.