mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
fix flags
This commit is contained in:
parent
f183111c30
commit
1ffd8a1bcb
2 changed files with 4 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ var (
|
||||||
utils.StateHistoryFlag,
|
utils.StateHistoryFlag,
|
||||||
utils.TrienodeHistoryFlag,
|
utils.TrienodeHistoryFlag,
|
||||||
utils.TrienodeHistoryFullValueCheckpointFlag,
|
utils.TrienodeHistoryFullValueCheckpointFlag,
|
||||||
|
utils.BinTrieGroupDepthFlag,
|
||||||
utils.LightKDFFlag,
|
utils.LightKDFFlag,
|
||||||
utils.EthRequiredBlocksFlag,
|
utils.EthRequiredBlocksFlag,
|
||||||
utils.LegacyWhitelistFlag, // deprecated
|
utils.LegacyWhitelistFlag, // deprecated
|
||||||
|
|
|
||||||
|
|
@ -1814,6 +1814,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
if ctx.IsSet(TrienodeHistoryFlag.Name) {
|
if ctx.IsSet(TrienodeHistoryFlag.Name) {
|
||||||
cfg.TrienodeHistory = ctx.Int64(TrienodeHistoryFlag.Name)
|
cfg.TrienodeHistory = ctx.Int64(TrienodeHistoryFlag.Name)
|
||||||
}
|
}
|
||||||
|
if ctx.IsSet(TrienodeHistoryFullValueCheckpointFlag.Name) {
|
||||||
|
cfg.TrienodeHistory = ctx.Int64(TrienodeHistoryFullValueCheckpointFlag.Name)
|
||||||
|
}
|
||||||
if ctx.IsSet(StateSchemeFlag.Name) {
|
if ctx.IsSet(StateSchemeFlag.Name) {
|
||||||
cfg.StateScheme = ctx.String(StateSchemeFlag.Name)
|
cfg.StateScheme = ctx.String(StateSchemeFlag.Name)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue