eth: use NewDB hook also for extra DB

(cherry picked from commit d5083033f15bb815a6212eddae16a7125db58738)
This commit is contained in:
Felix Lange 2015-04-17 16:28:44 +02:00 committed by Gustav Simonsson
parent fa729a0c55
commit 2ce21cefdc

View File

@ -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"))