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 16:27:31 +0800 |
commit | 710435b51b97b4c688b70bda35ab9d1aa704a988 (patch) | |
tree | 154eb1fc771c9d809dc537a5ae45418263ad0770 /ethdb/database.go | |
parent | cd791bd855b55b95afc8a5c8f56b8bf67863d099 (diff) | |
download | dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.gz dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.tar.zst dexon-710435b51b97b4c688b70bda35ab9d1aa704a988.zip |
core, eth, trie: reuse trie journals in all our code
Diffstat (limited to 'ethdb/database.go')
-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 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) |