diff --git a/ldb/leveldb.go b/ldb/leveldb.go index 5389d5d5..c1e77388 100644 --- a/ldb/leveldb.go +++ b/ldb/leveldb.go @@ -177,8 +177,9 @@ func openDB(dbpath string, flag opt.OptionsFlag) (pbdb btcdb.Db, err error) { } } + myCache := cache.NewEmptyCache() opts := &opt.Options{Flag: flag, - BlockCache: cache.EmptyCache{}, + BlockCache: myCache, MaxOpenFiles: 256, CompressionType: opt.NoCompression, }