mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
disable ancient prunning on archive mode
This commit is contained in:
parent
2488e01f2f
commit
0d956d6dd7
1 changed files with 4 additions and 0 deletions
|
|
@ -1595,6 +1595,10 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
ctx.GlobalSet(TxLookupLimitFlag.Name, "0")
|
||||
log.Warn("Disable transaction unindexing for archive node")
|
||||
}
|
||||
if ctx.GlobalString(GCModeFlag.Name) == "archive" && ctx.GlobalIsSet(AncientRecentLimitFlag.Name) != 0 {
|
||||
ctx.GlobalSet(AncientRecentLimitFlag.Name, "0")
|
||||
log.Warn("Disable ancient prunning for archive node")
|
||||
}
|
||||
if ctx.GlobalIsSet(LightServeFlag.Name) && ctx.GlobalUint64(TxLookupLimitFlag.Name) != 0 {
|
||||
log.Warn("LES server cannot serve old transaction status and cannot connect below les/4 protocol version if transaction lookup index is limited")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue