aboutsummaryrefslogtreecommitdiffstats
path: root/ptrie/trie.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-21 23:48:07 +0800
committerobscuren <geffobscura@gmail.com>2014-11-21 23:48:07 +0800
commit8cf9ed0ea588e97f2baf0f834248727e8fbca18f (patch)
tree1777c37c7b25e439ebc4fcbc025b84fc8b813864 /ptrie/trie.go
parent9b8a12b4b53f319f6422a43e43b2274a337d7fec (diff)
downloaddexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.gz
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.bz2
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.lz
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.xz
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.tar.zst
dexon-8cf9ed0ea588e97f2baf0f834248727e8fbca18f.zip
Fixed test
Diffstat (limited to 'ptrie/trie.go')
-rw-r--r--ptrie/trie.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ptrie/trie.go b/ptrie/trie.go
index 7701966e5..9fe9ea52a 100644
--- a/ptrie/trie.go
+++ b/ptrie/trie.go
@@ -3,6 +3,7 @@ package ptrie
import (
"bytes"
"container/list"
+ "fmt"
"sync"
"github.com/ethereum/go-ethereum/crypto"
@@ -198,7 +199,7 @@ func (self *Trie) get(node Node, key []byte) Node {
case *FullNode:
return self.get(node.branch(key[0]), key[1:])
default:
- panic("Invalid node")
+ panic(fmt.Sprintf("%T: invalid node: %v", node, node))
}
}