cmd, core, eth, ethdb: cache flag to allocate memory for db internal use

This commit is contained in:
Péter Szilágyi
2015-07-22 13:46:20 +03:00
parent f1daed65b1
commit c7e7778f2a
6 changed files with 43 additions and 15 deletions

View File

@ -153,7 +153,7 @@ func benchInsertChain(b *testing.B, disk bool, gen func(int, *BlockGen)) {
b.Fatalf("cannot create temporary directory: %v", err)
}
defer os.RemoveAll(dir)
db, err = ethdb.NewLDBDatabase(dir)
db, err = ethdb.NewLDBDatabase(dir, 0)
if err != nil {
b.Fatalf("cannot create temporary database: %v", err)
}