mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
cmd/geth: fix era path
This commit is contained in:
parent
820316f8a4
commit
e3f6263bfd
1 changed files with 2 additions and 2 deletions
|
|
@ -724,8 +724,8 @@ func downloadEra(ctx *cli.Context) error {
|
|||
stack, _ := makeConfigNode(ctx)
|
||||
defer stack.Close()
|
||||
|
||||
ancients := stack.ResolveAncient("chaindata", "chain")
|
||||
dir := filepath.Join(ancients, "era")
|
||||
ancients := stack.ResolveAncient("chaindata", "")
|
||||
dir := filepath.Join(ancients, rawdb.ChainFreezerName, "era")
|
||||
if ctx.IsSet(utils.EraFlag.Name) {
|
||||
dir = filepath.Join(ancients, ctx.String(utils.EraFlag.Name))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue