Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultCacheSize is calculated as memory consumption in a worst case scenario with default configuration // Average memory consumption might be 3-5 times lower than the maximum DefaultCacheSize = 3600 ConstantCacheSize = 600 )
Variables ¶
View Source
var ( EvmExportMode = cli.StringFlag{ Name: "export.evm.mode", Usage: `EVM export mode ("full" or "ext-rnd" or "rnd")`, Value: "random", } EvmExportExclude = cli.StringFlag{ Name: "export.evm.exclude", Usage: `DB of EVM keys to exclude from genesis`, } GenesisExportSections = cli.StringFlag{ Name: "export.sections", Usage: `Genesis sections to export separated by comma (e.g. "brs-1" or "ers" or "evm-2")`, Value: "brs,ers,evm", } )
View Source
var ( // DataDirFlag defines directory to store Lachesis state and user's wallets DataDirFlag = utils.DirectoryFlag{ Name: "datadir", Usage: "Data directory for the databases and keystore", Value: utils.DirectoryString(DefaultDataDir()), } CacheFlag = cli.IntFlag{ Name: "cache", Usage: "Megabytes of memory allocated to internal caching", Value: DefaultCacheSize, } // GenesisFlag specifies network genesis configuration GenesisFlag = cli.StringFlag{ Name: "genesis", Usage: "'path to genesis file' - sets the network genesis configuration.", } ExperimentalGenesisFlag = cli.BoolFlag{ Name: "genesis.allowExperimental", Usage: "Allow to use experimental genesis file.", } RPCGlobalGasCapFlag = cli.Uint64Flag{ Name: "rpc.gascap", Usage: "Sets a cap on gas that can be used in ftm_call/estimateGas (0=infinite)", Value: gossip.DefaultConfig(cachescale.Identity).RPCGasCap, } RPCGlobalTxFeeCapFlag = cli.Float64Flag{ Name: "rpc.txfeecap", Usage: "Sets a cap on transaction fee (in FTM) that can be sent via the RPC APIs (0 = no cap)", Value: gossip.DefaultConfig(cachescale.Identity).RPCTxFeeCap, } RPCGlobalTimeoutFlag = cli.DurationFlag{ Name: "rpc.timeout", Usage: "Time limit for RPC calls execution", Value: gossip.DefaultConfig(cachescale.Identity).RPCTimeout, } SyncModeFlag = cli.StringFlag{ Name: "syncmode", Usage: `Blockchain sync mode ("full" or "snap")`, Value: "full", } GCModeFlag = cli.StringFlag{ Name: "gcmode", Usage: `Blockchain garbage collection mode ("light", "full", "archive")`, Value: "archive", } ExitWhenAgeFlag = cli.DurationFlag{ Name: "exitwhensynced.age", Usage: "Exits after synchronisation reaches the required age", } ExitWhenEpochFlag = cli.Uint64Flag{ Name: "exitwhensynced.epoch", Usage: "Exits after synchronisation reaches the required epoch", } DBMigrationModeFlag = cli.StringFlag{ Name: "db.migration.mode", Usage: "MultiDB migration mode ('reformat' or 'rebuild')", } DBPresetFlag = cli.StringFlag{ Name: "db.preset", Usage: "DBs layout preset ('pbl-1' or 'ldb-1' or 'legacy-ldb' or 'legacy-pbl')", } )
View Source
var AppHelpFlagGroups = calcAppHelpFlagGroups()
AppHelpFlagGroups is the application flags, grouped by functionality.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.