mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
cmd, eth: fix journal path
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
4b5cf343d4
commit
f0747976e8
1 changed files with 8 additions and 1 deletions
|
|
@ -1691,7 +1691,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
cfg.SnapshotCache = ctx.Int(CacheFlag.Name) * ctx.Int(CacheSnapshotFlag.Name) / 100
|
||||
}
|
||||
if ctx.IsSet(TrieDBJournalFlag.Name) {
|
||||
cfg.TrieDBJournal = stack.ResolvePath(ctx.String(TrieDBJournalFlag.Name))
|
||||
cfg.TrieDBJournal = ctx.String(TrieDBJournalFlag.Name)
|
||||
}
|
||||
if ctx.IsSet(CacheLogSizeFlag.Name) {
|
||||
cfg.FilterLogCacheSize = ctx.Int(CacheLogSizeFlag.Name)
|
||||
|
|
@ -2216,6 +2216,13 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
|
|||
options.Preimages = true
|
||||
log.Info("Enabling recording of key preimages since archive mode is used")
|
||||
}
|
||||
journal := ethconfig.Defaults.TrieDBJournal
|
||||
if ctx.IsSet(TrieDBJournalFlag.Name) {
|
||||
journal = ctx.String(TrieDBJournalFlag.Name)
|
||||
}
|
||||
if journal != "" {
|
||||
options.TrieDBJournal = stack.ResolvePath(journal)
|
||||
}
|
||||
if ctx.IsSet(TrieDBJournalFlag.Name) {
|
||||
options.TrieDBJournal = stack.ResolvePath(ctx.String(TrieDBJournalFlag.Name))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue