forked from cerc-io/ipfs-ethdb
revert to version that works with 1.9.10
This commit is contained in:
parent
520d6b9b90
commit
dece84dc59
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user