aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-07-22 18:46:20 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-22 19:00:52 +0800
commitc7e7778f2a7d80fa12643db546db98fa70f2e384 (patch)
treeec31d9621aa5b265af6a4c9098c2ad913c1a325d /core
parentf1daed65b1f89cae6327cd9f49668628c6980ade (diff)
downloaddexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.gz
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.bz2
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.lz
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.xz
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.zst
dexon-c7e7778f2a7d80fa12643db546db98fa70f2e384.zip
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
Diffstat (limited to 'core')
-rw-r--r--core/bench_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bench_test.go b/core/bench_test.go
index 018d27d8d..ec0474ad9 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -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)
}