Upgrade Geth to 1.14, update fixtures #6
@ -16,11 +16,14 @@ var (
|
|||||||
|
|
||||||
func OpenFixtureTrie(t *testing.T, height uint64) (state.Trie, ethdb.Database) {
|
func OpenFixtureTrie(t *testing.T, height uint64) (state.Trie, ethdb.Database) {
|
||||||
data := premerge2.ChainData
|
data := premerge2.ChainData
|
||||||
kvdb, ldberr := rawdb.NewLevelDBDatabase(data.ChainData, 1024, 256, t.Name(), true)
|
edb, err := rawdb.Open(rawdb.OpenOptions{
|
||||||
if ldberr != nil {
|
Directory: data.ChainData,
|
||||||
t.Fatal(ldberr)
|
AncientsDirectory: data.Ancient,
|
||||||
}
|
Namespace: t.Name(),
|
||||||
edb, err := rawdb.NewDatabaseWithFreezer(kvdb, data.Ancient, t.Name(), true)
|
Cache: 1024,
|
||||||
|
Handles: 256,
|
||||||
|
ReadOnly: true,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user