Electroneum
Public Attributes | List of all members
anonymous_namespace{wallet2.cpp}::options Struct Reference
Collaboration diagram for anonymous_namespace{wallet2.cpp}::options:
Collaboration graph
[legend]

Public Attributes

const command_line::arg_descriptor< std::string > daemon_address = {"daemon-address", tools::wallet2::tr("Use daemon instance at <host>:<port>"), ""}
 
const command_line::arg_descriptor< std::string > daemon_host = {"daemon-host", tools::wallet2::tr("Use daemon instance at host <arg> instead of localhost"), ""}
 
const command_line::arg_descriptor< std::string > proxy = {"proxy", tools::wallet2::tr("[<ip>:]<port> socks proxy to use for daemon connections"), {}, true}
 
const command_line::arg_descriptor< booltrusted_daemon = {"trusted-daemon", tools::wallet2::tr("Enable commands which rely on a trusted daemon"), false}
 
const command_line::arg_descriptor< booluntrusted_daemon = {"untrusted-daemon", tools::wallet2::tr("Disable commands which rely on a trusted daemon"), false}
 
const command_line::arg_descriptor< std::string > password = {"password", tools::wallet2::tr("Wallet password (For a wallet without a password use \"\")"), "", true}
 
const command_line::arg_descriptor< std::string > password_file = {"password-file", tools::wallet2::tr("Wallet password file"), "", true}
 
const command_line::arg_descriptor< int > daemon_port = {"daemon-port", tools::wallet2::tr("Use daemon instance at port <arg> instead of 26968"), 0}
 
const command_line::arg_descriptor< std::string > daemon_login = {"daemon-login", tools::wallet2::tr("Specify username[:password] for daemon RPC client"), "", true}
 
const command_line::arg_descriptor< std::string > daemon_ssl = {"daemon-ssl", tools::wallet2::tr("Enable SSL on daemon RPC connections: enabled|disabled|autodetect"), "autodetect"}
 
const command_line::arg_descriptor< std::string > daemon_ssl_private_key = {"daemon-ssl-private-key", tools::wallet2::tr("Path to a PEM format private key"), ""}
 
const command_line::arg_descriptor< std::string > daemon_ssl_certificate = {"daemon-ssl-certificate", tools::wallet2::tr("Path to a PEM format certificate"), ""}
 
const command_line::arg_descriptor< std::string > daemon_ssl_ca_certificates = {"daemon-ssl-ca-certificates", tools::wallet2::tr("Path to file containing concatenated PEM format certificate(s) to replace system CA(s).")}
 
const command_line::arg_descriptor< std::vector< std::string > > daemon_ssl_allowed_fingerprints = {"daemon-ssl-allowed-fingerprints", tools::wallet2::tr("List of valid fingerprints of allowed RPC servers")}
 
const command_line::arg_descriptor< booldaemon_ssl_allow_any_cert = {"daemon-ssl-allow-any-cert", tools::wallet2::tr("Allow any SSL certificate from the daemon"), false}
 
const command_line::arg_descriptor< booldaemon_ssl_allow_chained = {"daemon-ssl-allow-chained", tools::wallet2::tr("Allow user (via --daemon-ssl-ca-certificates) chain certificates"), false}
 
const command_line::arg_descriptor< booltestnet = {"testnet", tools::wallet2::tr("For testnet. Daemon must also be launched with --testnet flag"), false}
 
const command_line::arg_descriptor< boolstagenet = {"stagenet", tools::wallet2::tr("For stagenet. Daemon must also be launched with --stagenet flag"), false}
 
const command_line::arg_descriptor< uint64_t > fallback_to_pow_checkpoint_height = {"fallback-to-pow-checkpoint-height", tools::wallet2::tr("Warning: This is to set the height for a custom checkpoint in the event of PoW fallback. Do not use in normal circumstances. See docs for details "), 0, false}
 
const command_line::arg_descriptor< std::string > fallback_to_pow_checkpoint_hash = {"fallback-to-pow-checkpoint-hash", tools::wallet2::tr("Warning: This is to set the hash for a custom checkpoint in the event of PoW fallback. Do not use in normal circumstances. See docs for details "), "", false}
 
const command_line::arg_descriptor< std::string, false, true, 2 > shared_ringdb_dir
 
const command_line::arg_descriptor< uint64_t > kdf_rounds = {"kdf-rounds", tools::wallet2::tr("Number of rounds for the key derivation function"), 1}
 
const command_line::arg_descriptor< std::string > hw_device = {"hw-device", tools::wallet2::tr("HW device to use"), ""}
 
const command_line::arg_descriptor< std::string > hw_device_derivation_path = {"hw-device-deriv-path", tools::wallet2::tr("HW device wallet derivation path (e.g., SLIP-10)"), ""}
 
const command_line::arg_descriptor< std::string > tx_notify = { "tx-notify" , "Run a program for each new incoming transaction, '%s' will be replaced by the transaction hash" , "" }
 
const command_line::arg_descriptor< boolno_dns = {"no-dns", tools::wallet2::tr("Do not use DNS"), false}
 
const command_line::arg_descriptor< booloffline = {"offline", tools::wallet2::tr("Do not connect to a daemon, nor use DNS"), false}
 
const command_line::arg_descriptor< boolrestricted = {"restricted-rpc", tools::wallet2::tr("Restricts to view-only commands"), false}
 
const command_line::arg_descriptor< std::string > data_dir = {"data-dir", tools::wallet2::tr("Path to blockchain db"), ""}
 

Member Data Documentation

◆ daemon_address

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_address = {"daemon-address", tools::wallet2::tr("Use daemon instance at <host>:<port>"), ""}

◆ daemon_host

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_host = {"daemon-host", tools::wallet2::tr("Use daemon instance at host <arg> instead of localhost"), ""}

◆ daemon_login

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_login = {"daemon-login", tools::wallet2::tr("Specify username[:password] for daemon RPC client"), "", true}

◆ daemon_port

const command_line::arg_descriptor<int> anonymous_namespace{wallet2.cpp}::options::daemon_port = {"daemon-port", tools::wallet2::tr("Use daemon instance at port <arg> instead of 26968"), 0}

◆ daemon_ssl

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_ssl = {"daemon-ssl", tools::wallet2::tr("Enable SSL on daemon RPC connections: enabled|disabled|autodetect"), "autodetect"}

◆ daemon_ssl_allow_any_cert

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::daemon_ssl_allow_any_cert = {"daemon-ssl-allow-any-cert", tools::wallet2::tr("Allow any SSL certificate from the daemon"), false}

◆ daemon_ssl_allow_chained

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::daemon_ssl_allow_chained = {"daemon-ssl-allow-chained", tools::wallet2::tr("Allow user (via --daemon-ssl-ca-certificates) chain certificates"), false}

◆ daemon_ssl_allowed_fingerprints

const command_line::arg_descriptor<std::vector<std::string> > anonymous_namespace{wallet2.cpp}::options::daemon_ssl_allowed_fingerprints = {"daemon-ssl-allowed-fingerprints", tools::wallet2::tr("List of valid fingerprints of allowed RPC servers")}

◆ daemon_ssl_ca_certificates

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_ssl_ca_certificates = {"daemon-ssl-ca-certificates", tools::wallet2::tr("Path to file containing concatenated PEM format certificate(s) to replace system CA(s).")}

◆ daemon_ssl_certificate

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_ssl_certificate = {"daemon-ssl-certificate", tools::wallet2::tr("Path to a PEM format certificate"), ""}

◆ daemon_ssl_private_key

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::daemon_ssl_private_key = {"daemon-ssl-private-key", tools::wallet2::tr("Path to a PEM format private key"), ""}

◆ data_dir

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::data_dir = {"data-dir", tools::wallet2::tr("Path to blockchain db"), ""}

◆ fallback_to_pow_checkpoint_hash

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::fallback_to_pow_checkpoint_hash = {"fallback-to-pow-checkpoint-hash", tools::wallet2::tr("Warning: This is to set the hash for a custom checkpoint in the event of PoW fallback. Do not use in normal circumstances. See docs for details "), "", false}

◆ fallback_to_pow_checkpoint_height

const command_line::arg_descriptor<uint64_t> anonymous_namespace{wallet2.cpp}::options::fallback_to_pow_checkpoint_height = {"fallback-to-pow-checkpoint-height", tools::wallet2::tr("Warning: This is to set the height for a custom checkpoint in the event of PoW fallback. Do not use in normal circumstances. See docs for details "), 0, false}

◆ hw_device

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::hw_device = {"hw-device", tools::wallet2::tr("HW device to use"), ""}

◆ hw_device_derivation_path

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::hw_device_derivation_path = {"hw-device-deriv-path", tools::wallet2::tr("HW device wallet derivation path (e.g., SLIP-10)"), ""}

◆ kdf_rounds

const command_line::arg_descriptor<uint64_t> anonymous_namespace{wallet2.cpp}::options::kdf_rounds = {"kdf-rounds", tools::wallet2::tr("Number of rounds for the key derivation function"), 1}

◆ no_dns

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::no_dns = {"no-dns", tools::wallet2::tr("Do not use DNS"), false}

◆ offline

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::offline = {"offline", tools::wallet2::tr("Do not connect to a daemon, nor use DNS"), false}

◆ password

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::password = {"password", tools::wallet2::tr("Wallet password (For a wallet without a password use \"\")"), "", true}

◆ password_file

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::password_file = {"password-file", tools::wallet2::tr("Wallet password file"), "", true}

◆ proxy

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::proxy = {"proxy", tools::wallet2::tr("[<ip>:]<port> socks proxy to use for daemon connections"), {}, true}

◆ restricted

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::restricted = {"restricted-rpc", tools::wallet2::tr("Restricts to view-only commands"), false}

◆ shared_ringdb_dir

const command_line::arg_descriptor<std::string, false, true, 2> anonymous_namespace{wallet2.cpp}::options::shared_ringdb_dir
Initial value:
= {
"shared-ringdb-dir", tools::wallet2::tr("Set shared ring database path"),
{{ &testnet, &stagenet }},
[](std::array<bool, 2> testnet_stagenet, bool defaulted, std::string val)->std::string {
if (testnet_stagenet[0])
return (boost::filesystem::path(val) / "testnet").string();
else if (testnet_stagenet[1])
return (boost::filesystem::path(val) / "stagenet").string();
return val;
}
}
static const char * tr(const char *str)
Definition: wallet2.cpp:987
std::string get_default_ringdb_path()
Definition: wallet2.cpp:144
const command_line::arg_descriptor< bool > stagenet
Definition: wallet2.cpp:258
const command_line::arg_descriptor< bool > testnet
Definition: wallet2.cpp:257

◆ stagenet

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::stagenet = {"stagenet", tools::wallet2::tr("For stagenet. Daemon must also be launched with --stagenet flag"), false}

◆ testnet

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::testnet = {"testnet", tools::wallet2::tr("For testnet. Daemon must also be launched with --testnet flag"), false}

◆ trusted_daemon

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::trusted_daemon = {"trusted-daemon", tools::wallet2::tr("Enable commands which rely on a trusted daemon"), false}

◆ tx_notify

const command_line::arg_descriptor<std::string> anonymous_namespace{wallet2.cpp}::options::tx_notify = { "tx-notify" , "Run a program for each new incoming transaction, '%s' will be replaced by the transaction hash" , "" }

◆ untrusted_daemon

const command_line::arg_descriptor<bool> anonymous_namespace{wallet2.cpp}::options::untrusted_daemon = {"untrusted-daemon", tools::wallet2::tr("Disable commands which rely on a trusted daemon"), false}

The documentation for this struct was generated from the following file: