From d23d01ed81912538466250e71beee337284c31a9 Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Thu, 14 Oct 2021 12:19:06 +0530 Subject: [PATCH] Upgrade geth to v1.10.9. --- go.mod | 4 ++-- iterator.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 1e656f4..247fa01 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,6 @@ module github.com/vulcanize/go-eth-state-node-iterator go 1.13 -require github.com/ethereum/go-ethereum v1.9.11 +require github.com/ethereum/go-ethereum v1.10.9 -replace github.com/ethereum/go-ethereum v1.9.11 => github.com/vulcanize/go-ethereum v1.9.11-statediff-0.0.2 +replace github.com/ethereum/go-ethereum v1.10.9 => github.com/vulcanize/go-ethereum v1.10.9-statediff-0.0.27 diff --git a/iterator.go b/iterator.go index 08c975d..407ad24 100644 --- a/iterator.go +++ b/iterator.go @@ -22,6 +22,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/trie" ) @@ -66,6 +67,9 @@ func (it *PrefixBoundIterator) LeafProof() [][]byte { func (it *PrefixBoundIterator) Parent() common.Hash { return it.current.Parent() } +func (it *PrefixBoundIterator) AddResolver(store ethdb.KeyValueStore) { + it.current.AddResolver(store) +} // Iterator with an upper bound value (hex path prefix) func NewPrefixBoundIterator(it trie.NodeIterator, to []byte) *PrefixBoundIterator {