TARAXA
|
#include <config.hpp>
Public Types | |
enum class | ChainIdType { Mainnet = 841 , Testnet , Devnet , LastNetworkId } |
Public Member Functions | |
Config (int argc, const char *argv[]) | |
bool | nodeConfigured () |
FullNodeConfig | getNodeConfiguration () |
Static Public Attributes | |
static constexpr ChainIdType | DEFAULT_CHAIN_ID = ChainIdType::Mainnet |
Protected Member Functions | |
std::string | dirNameFromFile (const std::string &file) |
Protected Attributes | |
FullNodeConfig | node_config_ |
bool | node_configured_ = false |
Static Protected Attributes | |
static constexpr const char * | CONFIG = "config" |
static constexpr const char * | GENESIS = "genesis" |
static constexpr const char * | DATA_DIR = "data-dir" |
static constexpr const char * | CHAIN_ID = "chain-id" |
static constexpr const char * | CHAIN = "chain" |
static constexpr const char * | COMMAND = "command" |
static constexpr const char * | DESTROY_DB = "destroy-db" |
static constexpr const char * | REBUILD_NETWORK = "rebuild-network" |
static constexpr const char * | REBUILD_DB = "rebuild-db" |
static constexpr const char * | REBUILD_DB_PERIOD = "rebuild-db-period" |
static constexpr const char * | REVERT_TO_PERIOD = "revert-to-period" |
static constexpr const char * | LIGHT = "light" |
static constexpr const char * | HELP = "help" |
static constexpr const char * | VERSION = "version" |
static constexpr const char * | WALLET = "wallet" |
static constexpr const char * | PRUNE_STATE_DB = "prune-state-db" |
static constexpr const char * | NODE_COMMAND = "node" |
static constexpr const char * | ACCOUNT_COMMAND = "account" |
static constexpr const char * | VRF_COMMAND = "vrf" |
static constexpr const char * | CONFIG_COMMAND = "config" |
static constexpr const char * | BOOT_NODES = "boot-nodes" |
static constexpr const char * | PUBLIC_IP = "public-ip" |
static constexpr const char * | PORT = "port" |
static constexpr const char * | LOG_CHANNELS = "log-channels" |
static constexpr const char * | LOG_CONFIGURATIONS = "log-configurations" |
static constexpr const char * | BOOT_NODES_APPEND = "boot-nodes-append" |
static constexpr const char * | LOG_CHANNELS_APPEND = "log-channels-append" |
static constexpr const char * | NODE_SECRET = "node-secret" |
static constexpr const char * | VRF_SECRET = "vrf-secret" |
static constexpr const char * | OVERWRITE_CONFIG = "overwrite-config" |
static constexpr const char * | ENABLE_TEST_RPC = "enable-test-rpc" |
static constexpr const char * | ENABLE_DEBUG = "debug" |
static constexpr const char * | MIGRATE_ONLY = "migrate-only" |
static constexpr const char * | FIX_TRX_PERIOD = "fix-transactions-period" |
|
strong |
taraxa::cli::Config::Config | ( | int | argc, |
const char * | argv[] | ||
) |
|
protected |
FullNodeConfig taraxa::cli::Config::getNodeConfiguration | ( | ) |
bool taraxa::cli::Config::nodeConfigured | ( | ) |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexpr |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
protected |
|
protected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |
|
staticconstexprprotected |