aboutsummaryrefslogtreecommitdiffstats
path: root/trie/errors.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-04-18 19:08:17 +0800
committerFelix Lange <fjl@twurst.com>2017-04-18 20:52:11 +0800
commita31d268b76ff13df8e7d060163a842b8ed569793 (patch)
tree3660c31af1e6fc226e99b1b2767c8fe551f40681 /trie/errors.go
parentc7a4d9cf8ae307a94d16dd8197824eecd320cdf7 (diff)
downloaddexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar
dexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar.gz
dexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar.bz2
dexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar.lz
dexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar.xz
dexon-a31d268b76ff13df8e7d060163a842b8ed569793.tar.zst
dexon-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/errors.go')
-rw-r--r--trie/errors.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/trie/errors.go b/trie/errors.go
index 76129a70b..e23f9d563 100644
--- a/trie/errors.go
+++ b/trie/errors.go
@@ -30,10 +30,6 @@ import (
//
// RootHash is the original root of the trie that contains the node
//
-// Key is a binary-encoded key that contains the prefix that leads to the first
-// missing node and optionally a suffix that hints on which further nodes should
-// also be retrieved
-//
// PrefixLen is the nibble length of the key prefix that leads from the root to
// the missing node
//
@@ -42,7 +38,6 @@ import (
// such hints in the error message)
type MissingNodeError struct {
RootHash, NodeHash common.Hash
- Key []byte
PrefixLen, SuffixLen int
}