diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-17 22:28:44 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-19 05:59:31 +0800 |
commit | 2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd (patch) | |
tree | 88606999985bf676ccd6d7525d7a9838f690db79 | |
parent | fa729a0c55aa4b00c2ac33d0fcee8acabed2f737 (diff) | |
download | go-tangerine-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.gz go-tangerine-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.tar.zst go-tangerine-2ce21cefdc0b8f9a4942a4a337b73b3ca131c2cd.zip |
eth: use NewDB hook also for extra DB
(cherry picked from commit d5083033f15bb815a6212eddae16a7125db58738)
-rw-r--r-- | eth/backend.go | 5 |
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")) |