2020-09-05 16:07:27 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
import (
|
2022-11-14 16:33:57 +00:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
|
2021-05-20 18:25:53 +00:00
|
|
|
"github.com/ledgerwatch/erigon/cmd/utils"
|
2020-09-05 16:07:27 +00:00
|
|
|
)
|
|
|
|
|
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{
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.DataDirFlag,
|
|
|
|
&utils.EthashDatasetDirFlag,
|
|
|
|
&utils.SnapshotFlag,
|
2023-04-19 12:37:35 +00:00
|
|
|
&utils.InternalConsensusFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TxPoolDisableFlag,
|
|
|
|
&utils.TxPoolLocalsFlag,
|
|
|
|
&utils.TxPoolNoLocalsFlag,
|
|
|
|
&utils.TxPoolPriceLimitFlag,
|
|
|
|
&utils.TxPoolPriceBumpFlag,
|
2023-09-11 02:38:58 +00:00
|
|
|
&utils.TxPoolBlobPriceBumpFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TxPoolAccountSlotsFlag,
|
2023-09-20 11:59:30 +00:00
|
|
|
&utils.TxPoolBlobSlotsFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TxPoolGlobalSlotsFlag,
|
|
|
|
&utils.TxPoolGlobalBaseFeeSlotsFlag,
|
|
|
|
&utils.TxPoolAccountQueueFlag,
|
|
|
|
&utils.TxPoolGlobalQueueFlag,
|
|
|
|
&utils.TxPoolLifetimeFlag,
|
|
|
|
&utils.TxPoolTraceSendersFlag,
|
2023-03-22 03:53:47 +00:00
|
|
|
&utils.TxPoolCommitEveryFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&PruneFlag,
|
|
|
|
&PruneHistoryFlag,
|
|
|
|
&PruneReceiptFlag,
|
|
|
|
&PruneTxIndexFlag,
|
|
|
|
&PruneCallTracesFlag,
|
|
|
|
&PruneHistoryBeforeFlag,
|
|
|
|
&PruneReceiptBeforeFlag,
|
|
|
|
&PruneTxIndexBeforeFlag,
|
|
|
|
&PruneCallTracesBeforeFlag,
|
|
|
|
&BatchSizeFlag,
|
2023-01-16 22:09:28 +00:00
|
|
|
&BodyCacheLimitFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&DatabaseVerbosityFlag,
|
|
|
|
&PrivateApiAddr,
|
|
|
|
&PrivateApiRateLimit,
|
|
|
|
&EtlBufferSizeFlag,
|
|
|
|
&TLSFlag,
|
|
|
|
&TLSCertFlag,
|
|
|
|
&TLSKeyFlag,
|
|
|
|
&TLSCACertFlag,
|
|
|
|
&StateStreamDisableFlag,
|
|
|
|
&SyncLoopThrottleFlag,
|
|
|
|
&BadBlockFlag,
|
2022-02-16 17:38:54 +00:00
|
|
|
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.HTTPEnabledFlag,
|
2023-10-31 09:14:20 +00:00
|
|
|
&utils.HTTPServerEnabledFlag,
|
2023-02-20 11:23:06 +00:00
|
|
|
&utils.GraphQLEnabledFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.HTTPListenAddrFlag,
|
|
|
|
&utils.HTTPPortFlag,
|
|
|
|
&utils.AuthRpcAddr,
|
|
|
|
&utils.AuthRpcPort,
|
|
|
|
&utils.JWTSecretPath,
|
|
|
|
&utils.HttpCompressionFlag,
|
|
|
|
&utils.HTTPCORSDomainFlag,
|
|
|
|
&utils.HTTPVirtualHostsFlag,
|
|
|
|
&utils.AuthRpcVirtualHostsFlag,
|
|
|
|
&utils.HTTPApiFlag,
|
2023-12-07 10:59:22 +00:00
|
|
|
&utils.WSPortFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.WSEnabledFlag,
|
|
|
|
&utils.WsCompressionFlag,
|
|
|
|
&utils.HTTPTraceFlag,
|
|
|
|
&utils.StateCacheFlag,
|
|
|
|
&utils.RpcBatchConcurrencyFlag,
|
|
|
|
&utils.RpcStreamingDisableFlag,
|
|
|
|
&utils.DBReadConcurrencyFlag,
|
|
|
|
&utils.RpcAccessListFlag,
|
|
|
|
&utils.RpcTraceCompatFlag,
|
|
|
|
&utils.RpcGasCapFlag,
|
2023-01-07 21:16:43 +00:00
|
|
|
&utils.RpcBatchLimit,
|
|
|
|
&utils.RpcReturnDataLimit,
|
2023-10-08 01:18:14 +00:00
|
|
|
&utils.AllowUnprotectedTxs,
|
2023-11-13 16:11:35 +00:00
|
|
|
&utils.RpcMaxGetProofRewindBlockCount,
|
2023-06-23 04:17:10 +00:00
|
|
|
&utils.RPCGlobalTxFeeCapFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TxpoolApiAddrFlag,
|
|
|
|
&utils.TraceMaxtracesFlag,
|
|
|
|
&HTTPReadTimeoutFlag,
|
|
|
|
&HTTPWriteTimeoutFlag,
|
|
|
|
&HTTPIdleTimeoutFlag,
|
|
|
|
&AuthRpcReadTimeoutFlag,
|
|
|
|
&AuthRpcWriteTimeoutFlag,
|
|
|
|
&AuthRpcIdleTimeoutFlag,
|
|
|
|
&EvmCallTimeoutFlag,
|
2022-02-16 17:38:54 +00:00
|
|
|
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.SnapKeepBlocksFlag,
|
|
|
|
&utils.SnapStopFlag,
|
|
|
|
&utils.DbPageSizeFlag,
|
2023-04-17 12:48:57 +00:00
|
|
|
&utils.DbSizeLimitFlag,
|
2023-08-30 01:49:16 +00:00
|
|
|
&utils.ForcePartialCommitFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TorrentPortFlag,
|
|
|
|
&utils.TorrentMaxPeersFlag,
|
|
|
|
&utils.TorrentConnsPerFileFlag,
|
|
|
|
&utils.TorrentDownloadSlotsFlag,
|
2023-03-08 08:30:00 +00:00
|
|
|
&utils.TorrentStaticPeersFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.TorrentUploadRateFlag,
|
|
|
|
&utils.TorrentDownloadRateFlag,
|
|
|
|
&utils.TorrentVerbosityFlag,
|
|
|
|
&utils.ListenPortFlag,
|
|
|
|
&utils.P2pProtocolVersionFlag,
|
2022-12-12 13:25:47 +00:00
|
|
|
&utils.P2pProtocolAllowedPorts,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.NATFlag,
|
|
|
|
&utils.NoDiscoverFlag,
|
|
|
|
&utils.DiscoveryV5Flag,
|
|
|
|
&utils.NetrestrictFlag,
|
|
|
|
&utils.NodeKeyFileFlag,
|
|
|
|
&utils.NodeKeyHexFlag,
|
|
|
|
&utils.DNSDiscoveryFlag,
|
|
|
|
&utils.BootnodesFlag,
|
|
|
|
&utils.StaticPeersFlag,
|
|
|
|
&utils.TrustedPeersFlag,
|
|
|
|
&utils.MaxPeersFlag,
|
|
|
|
&utils.ChainFlag,
|
|
|
|
&utils.DeveloperPeriodFlag,
|
|
|
|
&utils.VMEnableDebugFlag,
|
|
|
|
&utils.NetworkIdFlag,
|
|
|
|
&utils.FakePoWFlag,
|
|
|
|
&utils.GpoBlocksFlag,
|
|
|
|
&utils.GpoPercentileFlag,
|
|
|
|
&utils.InsecureUnlockAllowedFlag,
|
|
|
|
&utils.HistoryV3Flag,
|
|
|
|
&utils.IdentityFlag,
|
|
|
|
&utils.CliqueSnapshotCheckpointIntervalFlag,
|
|
|
|
&utils.CliqueSnapshotInmemorySnapshotsFlag,
|
|
|
|
&utils.CliqueSnapshotInmemorySignaturesFlag,
|
|
|
|
&utils.CliqueDataDirFlag,
|
|
|
|
&utils.MiningEnabledFlag,
|
|
|
|
&utils.ProposingDisableFlag,
|
|
|
|
&utils.MinerNotifyFlag,
|
|
|
|
&utils.MinerGasLimitFlag,
|
|
|
|
&utils.MinerEtherbaseFlag,
|
|
|
|
&utils.MinerExtraDataFlag,
|
|
|
|
&utils.MinerNoVerfiyFlag,
|
|
|
|
&utils.MinerSigningKeyFileFlag,
|
|
|
|
&utils.SentryAddrFlag,
|
|
|
|
&utils.SentryLogPeerInfoFlag,
|
|
|
|
&utils.DownloaderAddrFlag,
|
2022-12-15 09:40:59 +00:00
|
|
|
&utils.DisableIPV4,
|
|
|
|
&utils.DisableIPV6,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.NoDownloaderFlag,
|
|
|
|
&utils.DownloaderVerifyFlag,
|
|
|
|
&HealthCheckFlag,
|
|
|
|
&utils.HeimdallURLFlag,
|
2023-09-12 05:18:47 +00:00
|
|
|
&utils.WebSeedsFlag,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.WithoutHeimdallFlag,
|
2023-01-31 08:30:57 +00:00
|
|
|
&utils.HeimdallgRPCAddressFlag,
|
2023-07-18 08:47:04 +00:00
|
|
|
&utils.BorBlockPeriodFlag,
|
|
|
|
&utils.BorBlockSizeFlag,
|
2023-09-18 17:05:33 +00:00
|
|
|
&utils.WithHeimdallMilestones,
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.EthStatsURLFlag,
|
2023-08-03 14:05:35 +00:00
|
|
|
&utils.OverrideCancunFlag,
|
2022-07-31 03:46:00 +00:00
|
|
|
|
2022-11-14 16:33:57 +00:00
|
|
|
&utils.LightClientDiscoveryAddrFlag,
|
|
|
|
&utils.LightClientDiscoveryPortFlag,
|
|
|
|
&utils.LightClientDiscoveryTCPPortFlag,
|
|
|
|
&utils.SentinelAddrFlag,
|
|
|
|
&utils.SentinelPortFlag,
|
2023-07-28 01:29:17 +00:00
|
|
|
|
|
|
|
&utils.OtsSearchMaxCapFlag,
|
2023-08-03 12:36:47 +00:00
|
|
|
|
2023-11-02 01:35:13 +00:00
|
|
|
&utils.SilkwormExecutionFlag,
|
|
|
|
&utils.SilkwormRpcDaemonFlag,
|
|
|
|
&utils.SilkwormSentryFlag,
|
2023-10-05 02:27:37 +00:00
|
|
|
|
2023-11-15 14:07:16 +00:00
|
|
|
&utils.BeaconAPIFlag,
|
|
|
|
&utils.BeaconApiAddrFlag,
|
2024-01-02 22:29:00 +00:00
|
|
|
&utils.BeaconApiAllowMethodsFlag,
|
|
|
|
&utils.BeaconApiAllowOriginsFlag,
|
|
|
|
&utils.BeaconApiAllowCredentialsFlag,
|
2023-11-15 14:07:16 +00:00
|
|
|
&utils.BeaconApiPortFlag,
|
|
|
|
&utils.BeaconApiReadTimeoutFlag,
|
|
|
|
&utils.BeaconApiWriteTimeoutFlag,
|
|
|
|
&utils.BeaconApiProtocolFlag,
|
|
|
|
&utils.BeaconApiIdleTimeoutFlag,
|
|
|
|
|
2023-12-06 09:48:36 +00:00
|
|
|
&utils.CaplinBackfillingFlag,
|
|
|
|
&utils.CaplinArchiveFlag,
|
|
|
|
|
2023-08-03 12:36:47 +00:00
|
|
|
&utils.TrustedSetupFile,
|
2023-11-28 09:11:39 +00:00
|
|
|
&utils.RPCSlowFlag,
|
2023-11-23 05:00:41 +00:00
|
|
|
|
|
|
|
&utils.TxPoolGossipDisableFlag,
|
2024-01-08 17:52:28 +00:00
|
|
|
&SyncLoopBlockLimitFlag,
|
|
|
|
&SyncLoopBreakAfterFlag,
|
|
|
|
&SyncLoopPruneLimitFlag,
|
2020-09-05 16:07:27 +00:00
|
|
|
}
|