aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-28 17:53:54 +0800
committerGitHub <noreply@github.com>2016-09-28 17:53:54 +0800
commit437c3863f1917762e7f7474bd8b5c7ad78714d9c (patch)
tree154eb1fc771c9d809dc537a5ae45418263ad0770 /ethdb/database.go
parent863d166c7b0250cf2e99c8aad69578cdd144d386 (diff)
parent710435b51b97b4c688b70bda35ab9d1aa704a988 (diff)
downloadgo-tangerine-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.gz
go-tangerine-437c3863f1917762e7f7474bd8b5c7ad78714d9c.tar.zst
go-tangerine-437c3863f1917762e7f7474bd8b5c7ad78714d9c.zip
Merge pull request #3053 from karalabe/fjl-state-trie-journal
core, trie: replace state caches with trie journal
Diffstat (limited to 'ethdb/database.go')
-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)