aboutsummaryrefslogtreecommitdiffstats
path: root/core/bench_test.go
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/bench_test.go
parentf1daed65b1f89cae6327cd9f49668628c6980ade (diff)
downloadgo-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.gz
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.bz2
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.lz
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.xz
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.tar.zst
go-tangerine-c7e7778f2a7d80fa12643db546db98fa70f2e384.zip
cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
Diffstat (limited to 'core/bench_test.go')
-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)
}