Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKeystorePath = "./keys"
Env vars
Variables ¶
View Source
var ( ConfigFileFlag = &cli.StringFlag{ Name: "config", Usage: "JSON configuration file", } VerbosityFlag = &cli.StringFlag{ Name: "verbosity", Usage: "Supports levels crit (silent) to trce (trace)", Value: zerolog.InfoLevel.String(), } KeystorePathFlag = &cli.StringFlag{ Name: "keystore", Usage: "Path to keystore directory", Value: DefaultKeystorePath, } BlockstorePathFlag = &cli.StringFlag{ Name: "blockstore", Usage: "Specify path for blockstore", Value: "", } FreshStartFlag = &cli.BoolFlag{ Name: "fresh", Usage: "Disables loading from blockstore at start. Opts will still be used if specified.", } LatestBlockFlag = &cli.BoolFlag{ Name: "latest", Usage: "Overrides blockstore and start block, starts from latest block", } LevelDBPath = &cli.StringFlag{ Name: "leveldb", Usage: "sets path to leveldb database", Required: true, } )
View Source
var ( MetricsFlag = &cli.BoolFlag{ Name: "metrics", Usage: "Enables metric server", } MetricsPort = &cli.IntFlag{ Name: "metricsPort", Usage: "Port to serve metrics on", Value: 8001, } )
Metrics flags
View Source
var ( PasswordFlag = &cli.StringFlag{ Name: "password", Usage: "Password used to encrypt the keystore. Used with --generate, --import, or --unlock", } Secp256k1Flag = &cli.BoolFlag{ Name: "secp256k1", Usage: "Specify account/key type as secp256k1.", } )
Generate subcommand flags
View Source
var ( EthereumImportFlag = &cli.BoolFlag{ Name: "ethereum", Usage: "Import an existing ethereum keystore, such as from geth.", } PrivateKeyFlag = &cli.StringFlag{ Name: "privateKey", Usage: "Import a hex representation of a private key into a keystore.", } )
View Source
var (
HealthBlockTimeout = "BLOCK_TIMEOUT"
)
View Source
var (
TestKeyFlag = &cli.StringFlag{
Name: "testkey",
Usage: "Applies a predetermined test keystore to the chains.",
}
)
Test Setting Flags
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.