Switched to new trie
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package ptrie
|
||||
|
||||
import "fmt"
|
||||
|
||||
type FullNode struct {
|
||||
trie *Trie
|
||||
nodes [17]Node
|
||||
@ -56,6 +58,11 @@ func (self *FullNode) RlpData() interface{} {
|
||||
}
|
||||
|
||||
func (self *FullNode) set(k byte, value Node) {
|
||||
if _, ok := value.(*ValueNode); ok && k != 16 {
|
||||
fmt.Println(value, k)
|
||||
panic(":(")
|
||||
}
|
||||
|
||||
self.nodes[int(k)] = value
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user