Support pebble db
All checks were successful
Test / Run unit tests (pull_request) Successful in 3m38s
All checks were successful
Test / Run unit tests (pull_request) Successful in 3m38s
This commit is contained in:
parent
022fa9695e
commit
952c85d826
@ -16,11 +16,14 @@ var (
|
||||
|
||||
func OpenFixtureTrie(t *testing.T, height uint64) (state.Trie, ethdb.Database) {
|
||||
data := premerge2.ChainData
|
||||
kvdb, ldberr := rawdb.NewLevelDBDatabase(data.ChainData, 1024, 256, t.Name(), true)
|
||||
if ldberr != nil {
|
||||
t.Fatal(ldberr)
|
||||
}
|
||||
edb, err := rawdb.NewDatabaseWithFreezer(kvdb, data.Ancient, t.Name(), true)
|
||||
edb, err := rawdb.Open(rawdb.OpenOptions{
|
||||
Directory: data.ChainData,
|
||||
AncientsDirectory: data.Ancient,
|
||||
Namespace: t.Name(),
|
||||
Cache: 1024,
|
||||
Handles: 256,
|
||||
ReadOnly: true,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user