Skip to content

Commit

Permalink
Merge pull request openrelayxyz#22 from openrelayxyz/feature/expose-s…
Browse files Browse the repository at this point in the history
…tate-trie

Feature/expose state trie
  • Loading branch information
AusIV committed May 5, 2023
2 parents f0d96da + 1ea5b45 commit cee6a9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
}

0 comments on commit cee6a9b

Please sign in to comment.