revert to version that works with 1.9.10

This commit is contained in:
Ian Norden 2020-09-08 16:14:27 -05:00
parent 520d6b9b90
commit dece84dc59
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ func main() {
database := ipfsethdb.NewDatabase(ipfsNode.Blocks) database := ipfsethdb.NewDatabase(ipfsNode.Blocks)
stateDatabase := state.NewDatabase(database) stateDatabase := state.NewDatabase(database)
stateDB, _ := state.New(common.Hash{}, stateDatabase, nil) stateDB, _ := state.New(common.Hash{}, stateDatabase)
stateDBNodeIterator := state.NewNodeIterator(stateDB) stateDBNodeIterator := state.NewNodeIterator(stateDB)
// do stuff with the statedb node iterator // do stuff with the statedb node iterator
} }

View File

@ -33,7 +33,7 @@ func main() {
database := pgipfsethdb.NewDatabase(db) database := pgipfsethdb.NewDatabase(db)
stateDatabase := state.NewDatabase(database) stateDatabase := state.NewDatabase(database)
stateDB, _ := state.New(common.Hash{}, stateDatabase, nil) stateDB, _ := state.New(common.Hash{}, stateDatabase)
stateDBNodeIterator := state.NewNodeIterator(stateDB) stateDBNodeIterator := state.NewNodeIterator(stateDB)
// do stuff with the statedb node iterator // do stuff with the statedb node iterator
} }