aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-28 18:40:44 +0800
committerGitHub <noreply@github.com>2016-09-28 18:40:44 +0800
commitf88bca7ba96a16e10b9feee453dbdb4f81962f34 (patch)
tree15f58419e13f75dc0dfa940be0b1a9f3930de34f /ethdb
parent7a5843de318f4bf0e41ddaab2d690fbe6fd04099 (diff)
parentd4608ae0d2fc76ea1ba1d3a97033e60bab1f0d59 (diff)
downloadgo-tangerine-1.4.14.tar
go-tangerine-1.4.14.tar.gz
go-tangerine-1.4.14.tar.bz2
go-tangerine-1.4.14.tar.lz
go-tangerine-1.4.14.tar.xz
go-tangerine-1.4.14.tar.zst
go-tangerine-1.4.14.zip
Merge pull request #3055 from karalabe/release/1.4v1.4.14
Geth 1.4.14: What else should we rewrite?
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 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)