forked from cerc-io/plugeth
Report proper database directory. Closes #397
This commit is contained in:
parent
3a7c8d7ae4
commit
cc5c8a444d
@ -147,7 +147,8 @@ func New(config *Config) (*Ethereum, error) {
|
||||
d, _ := db.Get([]byte("ProtocolVersion"))
|
||||
protov := ethutil.NewValue(d).Uint()
|
||||
if protov != ProtocolVersion && protov != 0 {
|
||||
return nil, fmt.Errorf("Database version mismatch. Protocol(%d / %d). `rm -rf %s`", protov, ProtocolVersion, ethutil.Config.ExecPath+"/database")
|
||||
path := path.Join(config.DataDir, "database")
|
||||
return nil, fmt.Errorf("Database version mismatch. Protocol(%d / %d). `rm -rf %s`", protov, ProtocolVersion, path)
|
||||
}
|
||||
|
||||
// Create new keymanager
|
||||
|
Loading…
Reference in New Issue
Block a user