Changed Trie methods to conform to geth v1.11.6

This commit is contained in:
philip-morlier 2023-05-05 14:04:28 -07:00
parent 9ece32ad92
commit 53047f4c71

View File

@ -228,8 +228,7 @@ type Context interface {
type Trie interface {
GetKey([]byte) []byte
TryGet(key []byte) ([]byte, error)
TryGetAccount(address Address) (*StateAccount, error)
GetAccount(address Address) (*StateAccount, error)
Hash() Hash
NodeIterator(startKey []byte) NodeIterator
Prove(key []byte, fromLevel uint, proofDb KeyValueWriter) error
@ -261,4 +260,4 @@ type NodeResolver func(owner Hash, path []byte, hash Hash) []byte
type KeyValueWriter interface {
Put(key []byte, value []byte) error
Delete(key []byte) error
}
}