diff options
author | Felix Lange <fjl@twurst.com> | 2017-04-18 19:08:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-04-18 20:52:11 +0800 |
commit | a31d268b76ff13df8e7d060163a842b8ed569793 (patch) | |
tree | 3660c31af1e6fc226e99b1b2767c8fe551f40681 /trie/trie.go | |
parent | c7a4d9cf8ae307a94d16dd8197824eecd320cdf7 (diff) | |
download | go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar.gz go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar.bz2 go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar.lz go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar.xz go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.tar.zst go-tangerine-a31d268b76ff13df8e7d060163a842b8ed569793.zip |
trie: remove Key in MissingNodeError
The key was constructed from nibbles, which isn't possible for all
nodes. Remove the only use of Key in LightTrie by always retrying with
the original key that was looked up.
Diffstat (limited to 'trie/trie.go')
-rw-r--r-- | trie/trie.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go index 2a6044068..0979eb625 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -450,7 +450,6 @@ func (t *Trie) resolveHash(n hashNode, prefix, suffix []byte) (node, error) { return nil, &MissingNodeError{ RootHash: t.originalRoot, NodeHash: common.BytesToHash(n), - Key: compactHexEncode(append(prefix, suffix...)), PrefixLen: len(prefix), SuffixLen: len(suffix), } |