mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
node: revert change to instanceDir
This commit is contained in:
parent
591f861d3d
commit
c9601ccf37
1 changed files with 1 additions and 7 deletions
|
|
@ -337,13 +337,7 @@ func (c *Config) instanceDir() string {
|
||||||
if c.DataDir == "" {
|
if c.DataDir == "" {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
name := c.name()
|
return filepath.Join(c.DataDir, 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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// NodeKey retrieves the currently configured private key of the node, checking
|
// NodeKey retrieves the currently configured private key of the node, checking
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue