update for interface changes for NewDatabaseWithFreezer and leveldb

This commit is contained in:
Michael Shaw 2023-03-10 14:17:36 -05:00
parent d8560b4080
commit 0f3ff6591e

View File

@ -24,10 +24,11 @@ func TestMakePaths(t *testing.T) {
}
func TestIterator(t *testing.T) {
edb, err := rawdb.NewLevelDBDatabaseWithFreezer(
fixt.ChainDataPath, 1024, 256, fixt.AncientDataPath,
"eth-pg-ipfs-state-snapshot", false,
)
kvdb, ldberr := rawdb.NewLevelDBDatabase(fixt.ChainDataPath, 1024, 256, "eth-pg-ipfs-state-snapshot", false)
if ldberr != nil {
t.Fatal(ldberr)
}
edb, err := rawdb.NewDatabaseWithFreezer(kvdb, fixt.AncientDataPath, "eth-pg-ipfs-state-snapshot", false)
if err != nil {
t.Fatal(err)
}