aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-17 22:28:44 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-19 05:59:31 +0800
commit2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd (patch)
tree88606999985bf676ccd6d7525d7a9838f690db79
parentfa729a0c55aa4b00c2ac33d0fcee8acabed2f737 (diff)
downloaddexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.gz
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.bz2
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.lz
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.xz
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.zst
dexon-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.zip
eth: use NewDB hook also for extra DB
(cherry picked from commit d5083033f15bb815a6212eddae16a7125db58738)
-rw-r--r--eth/backend.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 264753aba..5798e641a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -171,7 +171,10 @@ func New(config *Config) (*Ethereum, error) {
if err != nil {
return nil, err
}
- extraDb, err := ethdb.NewLDBDatabase(path.Join(config.DataDir, "extra"))
+ extraDb, err := newdb(path.Join(config.DataDir, "extra"))
+ if err != nil {
+ return nil, err
+ }
// Perform database sanity checks
d, _ := blockDb.Get([]byte("ProtocolVersion"))