dup assign

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-06-19 21:34:42 +08:00 committed by Gary Rong
parent 525aacbb53
commit fef157dde2

View file

@ -2223,9 +2223,6 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
if journal != "" { if journal != "" {
options.TrieDBJournal = stack.ResolvePath(journal) options.TrieDBJournal = stack.ResolvePath(journal)
} }
if ctx.IsSet(TrieDBJournalFlag.Name) {
options.TrieDBJournal = stack.ResolvePath(ctx.String(TrieDBJournalFlag.Name))
}
if !ctx.Bool(SnapshotFlag.Name) { if !ctx.Bool(SnapshotFlag.Name) {
options.SnapshotLimit = 0 // Disabled options.SnapshotLimit = 0 // Disabled
} else if ctx.IsSet(CacheFlag.Name) || ctx.IsSet(CacheSnapshotFlag.Name) { } else if ctx.IsSet(CacheFlag.Name) || ctx.IsSet(CacheSnapshotFlag.Name) {