aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
Diffstat (limited to 'eth')
-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"))