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,
|
|
|
|
utils.EthashDatasetDirFlag,
|
|
|
|
utils.TxPoolLocalsFlag,
|
|
|
|
utils.TxPoolNoLocalsFlag,
|
|
|
|
utils.TxPoolJournalFlag,
|
|
|
|
utils.TxPoolRejournalFlag,
|
|
|
|
utils.TxPoolPriceLimitFlag,
|
|
|
|
utils.TxPoolPriceBumpFlag,
|
|
|
|
utils.TxPoolAccountSlotsFlag,
|
|
|
|
utils.TxPoolGlobalSlotsFlag,
|
|
|
|
utils.TxPoolAccountQueueFlag,
|
|
|
|
utils.TxPoolGlobalQueueFlag,
|
|
|
|
utils.TxPoolLifetimeFlag,
|
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,
|
2020-10-27 15:53:49 +00:00
|
|
|
SnapshotModeFlag,
|
2020-11-13 16:16:47 +00:00
|
|
|
SeedSnapshotsFlag,
|
2021-05-08 08:45:40 +00:00
|
|
|
SnapshotDatabaseLayoutFlag,
|
2020-11-13 16:16:47 +00:00
|
|
|
ExternalSnapshotDownloaderAddrFlag,
|
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,
|
|
|
|
EtlBufferSizeFlag,
|
|
|
|
TLSFlag,
|
|
|
|
TLSCertFlag,
|
|
|
|
TLSKeyFlag,
|
|
|
|
TLSCACertFlag,
|
2021-07-10 02:19:44 +00:00
|
|
|
SyncLoopThrottleFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
utils.ListenPortFlag,
|
2021-06-07 11:01:54 +00:00
|
|
|
utils.ListenPort65Flag,
|
2020-09-05 16:07:27 +00:00
|
|
|
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-06-13 20:14:52 +00:00
|
|
|
utils.MaxPeersFlag,
|
2021-04-08 07:39:40 +00:00
|
|
|
utils.ChainFlag,
|
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-04-30 15:09:03 +00:00
|
|
|
utils.SentryAddrFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
}
|