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,
|
2020-10-27 15:53:49 +00:00
|
|
|
StorageModeFlag,
|
|
|
|
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,
|
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
|
|
|
}
|