diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-09-27 18:13:13 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-09-28 18:32:12 +0800 |
commit | f50c2a5c70525ddedb12beeafea5af4ae203658c (patch) | |
tree | b2e8870786a0cbb43489a5fc787e4bfe77aac623 /ethdb | |
parent | ddadf402fcb49a4c9624441897c77de3e8cce50f (diff) | |
download | go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar.gz go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar.bz2 go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar.lz go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar.xz go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.tar.zst go-tangerine-f50c2a5c70525ddedb12beeafea5af4ae203658c.zip |
[release/1.4.14] core, eth, trie: reuse trie journals in all our code
(cherry picked from commit 710435b51b97b4c688b70bda35ab9d1aa704a988)
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index dffb42e2b..69b8cd9c9 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" @@ -86,6 +87,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) |