node: revert change to instanceDir

This commit is contained in:
Felix Lange 2019-02-22 12:49:36 +01:00 committed by Zsolt Felfoldi
parent 591f861d3d
commit c9601ccf37

View file

@ -337,13 +337,7 @@ func (c *Config) instanceDir() string {
if c.DataDir == "" {
return ""
}
name := c.name()
if name == "p2p-node" {
// use original data dir with network simulator in order to allow using
// an existing database for a simulated node instead of a temporary one
name = "geth"
}
return filepath.Join(c.DataDir, name)
return filepath.Join(c.DataDir, c.name())
}
// NodeKey retrieves the currently configured private key of the node, checking