aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-27 18:13:13 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-09-28 16:27:31 +0800
commit710435b51b97b4c688b70bda35ab9d1aa704a988 (patch)
tree154eb1fc771c9d809dc537a5ae45418263ad0770 /ethdb
parentcd791bd855b55b95afc8a5c8f56b8bf67863d099 (diff)
downloaddexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.gz
dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.zst
dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.zip
core, eth, trie: reuse trie journals in all our code
Diffstat (limited to 'ethdb')
-rw-r--r--ethdb/database.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index f93731cfe..a4a27303a 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -28,6 +28,7 @@ import (
"github.com/ethereum/go-ethereum/metrics"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
+ "github.com/syndtr/goleveldb/leveldb/filter"
"github.com/syndtr/goleveldb/leveldb/iterator"
"github.com/syndtr/goleveldb/leveldb/opt"
@@ -84,6 +85,7 @@ func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) {
OpenFilesCacheCapacity: handles,
BlockCacheCapacity: cache / 2 * opt.MiB,
WriteBuffer: cache / 4 * opt.MiB, // Two of these are used internally
+ Filter: filter.NewBloomFilter(10),
})
if _, corrupted := err.(*errors.ErrCorrupted); corrupted {
db, err = leveldb.RecoverFile(file, nil)
or USES=libtool:keepla intijl2014-12-091-1/+1 * misc/wmweather+: explicitly link libm (dports)marino2014-07-061-0/+1 * x11-wm/libwraster:tijl2014-06-301-1/+1 * These ports are no longer used or cared for.nemysis2014-04-291-3/+4 * - Update to 2.15nemysis2014-01-173-42/+51 * - Change maintainer email of my ports to @FreeBSD.orgnemysis2013-12-181-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 7.31.0sunpoet2013-07-121-0/+1 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1 * - Update to version 2.13pawel2013-03-164-37/+45 * Update PCRE to 8.32mm2012-12-111-1/+1 * Convert to new options frameworkbapt2012-10-231-7/+8 * Throw my ports back in the pool, and make my intentions clear for thedougb2012-10-081-4/+2 * - update png to 1.5.10dinoex2012-06-011-2/+2 * Move these ports from libungif to giflib since that seems to be the consensusdougb2012-01-281-1/+1 * Twiddle optimization level to make this safe for a clang userlanddougb2011-03-21