Merge pull request #8 from vulcanize/upgrade-geth

Upgrade geth to v1.10.9.
This commit is contained in:
Arijit Das 2021-10-19 11:36:12 +05:30 committed by GitHub
commit 89b3064c00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

4
go.mod
View File

@ -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

View File

@ -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 {