From 53047f4c7173b0c75629dbfc0f501adcb538c5c0 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Fri, 5 May 2023 14:04:28 -0700 Subject: [PATCH] Changed Trie methods to conform to geth v1.11.6 --- core/interface.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/interface.go b/core/interface.go index b8b2c80..318f312 100644 --- a/core/interface.go +++ b/core/interface.go @@ -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 -} \ No newline at end of file +}