aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-23 16:17:18 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-23 16:17:18 +0800
commitb403b9e4c398a285c0e307771761b29bab47adb9 (patch)
treeb9991d8a9ab71e84a1350e0769ec9ae59ecd3cc0 /core
parent26a269ea09667f7e49b89f96bb5eaee66c0d10f8 (diff)
parentc7e7778f2a7d80fa12643db546db98fa70f2e384 (diff)
downloaddexon-b403b9e4c398a285c0e307771761b29bab47adb9.tar.gz
dexon-b403b9e4c398a285c0e307771761b29bab47adb9.tar.zst
dexon-b403b9e4c398a285c0e307771761b29bab47adb9.zip
Merge pull request #1508 from karalabe/database-caching
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)
}