diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-11-30 20:34:19 +0800 |
---|---|---|
committer | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-12-17 23:07:54 +0800 |
commit | ef422ee1e1eef831c681aaec31ce7da23b12ae6d (patch) | |
tree | 771913e23581908925e4f4b547e8a316ae89e46c /trie/trie.go | |
parent | e6408617049d10a6366eef33ea9e97b58c7e30f9 (diff) | |
download | go-tangerine-ef422ee1e1eef831c681aaec31ce7da23b12ae6d.tar.gz go-tangerine-ef422ee1e1eef831c681aaec31ce7da23b12ae6d.tar.zst go-tangerine-ef422ee1e1eef831c681aaec31ce7da23b12ae6d.zip |
light: implemented odr-capable trie and state structures
Diffstat (limited to 'trie/trie.go')
-rw-r--r-- | trie/trie.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trie/trie.go b/trie/trie.go index 717296e27..9dfde4529 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -394,8 +394,9 @@ func (t *Trie) resolveHash(n hashNode, prefix, suffix []byte) (node, error) { return nil, &MissingNodeError{ RootHash: t.originalRoot, NodeHash: common.BytesToHash(n), - KeyPrefix: prefix, - KeySuffix: suffix, + Key: compactHexEncode(append(prefix, suffix...)), + PrefixLen: len(prefix), + SuffixLen: len(suffix), } } dec := mustDecodeNode(n, enc) |