2020-09-05 16:07:27 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
2021-05-20 18:25:53 +00:00
|
|
|
"github.com/ledgerwatch/erigon/cmd/utils"
|
2020-09-05 16:07:27 +00:00
|
|
|
|
|
|
|
"github.com/urfave/cli"
|
|
|
|
)
|
|
|
|
|
2021-05-26 10:35:39 +00:00
|
|
|
// DefaultFlags contains all flags that are used and supported by Erigon binary.
|
2020-09-05 16:07:27 +00:00
|
|
|
var DefaultFlags = []cli.Flag{
|
|
|
|
utils.DataDirFlag,
|
2021-09-27 11:43:24 +00:00
|
|
|
utils.MdbxAugmentLimitFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.EthashDatasetDirFlag,
|
2021-09-13 07:58:25 +00:00
|
|
|
utils.TxPoolDisableFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.TxPoolLocalsFlag,
|
|
|
|
utils.TxPoolNoLocalsFlag,
|
|
|
|
utils.TxPoolJournalFlag,
|
|
|
|
utils.TxPoolRejournalFlag,
|
|
|
|
utils.TxPoolPriceLimitFlag,
|
|
|
|
utils.TxPoolPriceBumpFlag,
|
|
|
|
utils.TxPoolAccountSlotsFlag,
|
|
|
|
utils.TxPoolGlobalSlotsFlag,
|
2021-09-29 07:48:19 +00:00
|
|
|
utils.TxPoolGlobalBaseFeeSlotsFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.TxPoolAccountQueueFlag,
|
|
|
|
utils.TxPoolGlobalQueueFlag,
|
|
|
|
utils.TxPoolLifetimeFlag,
|
2021-12-14 16:15:54 +00:00
|
|
|
utils.TxPoolTraceSendersFlag,
|
Pruning for: exec, log_index, tx_lookup, history stages (#2399)
* Pruning for: exec, log_index, tx_lookup, history stages
* Pruning for: exec, log_index, tx_lookup, history stages
* Pruning for: exec, log_index, tx_lookup, history stages
* Pruning for: exec, log_index, tx_lookup, history stages
* add tvm flag
* save
* db migration for storage mode
add flag --prune=
remove flag --storage-mode=
add flag --experiments=tevm,...
rename integration set_storage_mode to set_prune
* fix
* forward move of stages must skip everything before PruneTo
* keep in db progress of prune method
* keep in db progress of prune method
* simplify logs
* simplify logs
* simplify logs
* fix test
* simplify logs
* simplify logs
* simplify logs
* simplify logs
* remove callTraceSet as dupsort
use etl transform for txlookup prune
remove some logs
* cleanup tests a bit
* print_stages and eth_sync to show prune progress
* fix print_stages
* add readme about --prune.to flag
* more docs
* add --prune.history.older and other flags support
* fix migration on empty db
* better toString
* better toString
2021-07-20 20:03:19 +00:00
|
|
|
PruneFlag,
|
|
|
|
PruneHistoryFlag,
|
|
|
|
PruneReceiptFlag,
|
|
|
|
PruneTxIndexFlag,
|
|
|
|
PruneCallTracesFlag,
|
2021-09-23 02:13:19 +00:00
|
|
|
PruneHistoryBeforeFlag,
|
|
|
|
PruneReceiptBeforeFlag,
|
|
|
|
PruneTxIndexBeforeFlag,
|
|
|
|
PruneCallTracesBeforeFlag,
|
2020-10-27 15:53:49 +00:00
|
|
|
BatchSizeFlag,
|
2021-07-01 03:14:10 +00:00
|
|
|
BlockDownloaderWindowFlag,
|
2021-04-27 12:31:00 +00:00
|
|
|
DatabaseVerbosityFlag,
|
2020-10-27 15:53:49 +00:00
|
|
|
PrivateApiAddr,
|
2021-08-13 15:51:59 +00:00
|
|
|
PrivateApiRateLimit,
|
2020-10-27 15:53:49 +00:00
|
|
|
EtlBufferSizeFlag,
|
|
|
|
TLSFlag,
|
|
|
|
TLSCertFlag,
|
|
|
|
TLSKeyFlag,
|
|
|
|
TLSCACertFlag,
|
2021-10-05 09:06:45 +00:00
|
|
|
StateStreamDisableFlag,
|
2021-07-10 02:19:44 +00:00
|
|
|
SyncLoopThrottleFlag,
|
2021-07-22 15:49:36 +00:00
|
|
|
BadBlockFlag,
|
2021-11-21 03:32:14 +00:00
|
|
|
utils.SnapshotSyncFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.ListenPortFlag,
|
|
|
|
utils.NATFlag,
|
|
|
|
utils.NoDiscoverFlag,
|
|
|
|
utils.DiscoveryV5Flag,
|
|
|
|
utils.NetrestrictFlag,
|
|
|
|
utils.NodeKeyFileFlag,
|
|
|
|
utils.NodeKeyHexFlag,
|
|
|
|
utils.DNSDiscoveryFlag,
|
2021-04-20 11:32:06 +00:00
|
|
|
utils.StaticPeersFlag,
|
2021-11-14 11:44:44 +00:00
|
|
|
utils.TrustedPeersFlag,
|
2021-06-13 20:14:52 +00:00
|
|
|
utils.MaxPeersFlag,
|
2021-04-08 07:39:40 +00:00
|
|
|
utils.ChainFlag,
|
2021-10-19 06:50:25 +00:00
|
|
|
utils.DeveloperPeriodFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.VMEnableDebugFlag,
|
|
|
|
utils.NetworkIdFlag,
|
|
|
|
utils.FakePoWFlag,
|
|
|
|
utils.GpoBlocksFlag,
|
|
|
|
utils.GpoPercentileFlag,
|
|
|
|
utils.InsecureUnlockAllowedFlag,
|
|
|
|
utils.MetricsEnabledFlag,
|
|
|
|
utils.MetricsEnabledExpensiveFlag,
|
|
|
|
utils.MetricsHTTPFlag,
|
|
|
|
utils.MetricsPortFlag,
|
2020-09-06 15:42:19 +00:00
|
|
|
utils.IdentityFlag,
|
2021-04-19 21:58:05 +00:00
|
|
|
utils.CliqueSnapshotCheckpointIntervalFlag,
|
|
|
|
utils.CliqueSnapshotInmemorySnapshotsFlag,
|
|
|
|
utils.CliqueSnapshotInmemorySignaturesFlag,
|
|
|
|
utils.CliqueDataDirFlag,
|
2021-03-23 09:00:07 +00:00
|
|
|
utils.MiningEnabledFlag,
|
|
|
|
utils.MinerNotifyFlag,
|
|
|
|
utils.MinerGasTargetFlag,
|
|
|
|
utils.MinerGasLimitFlag,
|
|
|
|
utils.MinerEtherbaseFlag,
|
|
|
|
utils.MinerExtraDataFlag,
|
|
|
|
utils.MinerNoVerfiyFlag,
|
2021-09-07 09:12:49 +00:00
|
|
|
utils.MinerSigningKeyFileFlag,
|
2021-04-30 15:09:03 +00:00
|
|
|
utils.SentryAddrFlag,
|
2021-12-14 10:13:17 +00:00
|
|
|
utils.DownloaderAddrFlag,
|
2021-12-06 12:03:46 +00:00
|
|
|
HealthCheckFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
}
|