cmd/utils: disable txlookup pruning for archive node

This commit is contained in:
rjl493456442 2019-07-23 13:53:59 +08:00 committed by Péter Szilágyi
parent 2c7b166b25
commit dac227d9e8
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -1423,6 +1423,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
CheckExclusive(ctx, DeveloperFlag, TestnetFlag, RinkebyFlag, GoerliFlag)
CheckExclusive(ctx, LightLegacyServFlag, LightServeFlag, SyncModeFlag, "light")
CheckExclusive(ctx, DeveloperFlag, ExternalSignerFlag) // Can't use both ephemeral unlocked and external signer
CheckExclusive(ctx, GCModeFlag, "archive", TxLookupLimitFlag)
var ks *keystore.KeyStore
if keystores := stack.AccountManager().Backends(keystore.KeyStoreType); len(keystores) > 0 {