mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-11 21:59:05 +00:00
eth: use NewDB hook also for extra DB
This commit is contained in:
parent
4020258801
commit
d5083033f1
1 changed files with 4 additions and 1 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue