Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show All 17 Lines | |||||
#include <blockdb.h> | #include <blockdb.h> | ||||
#include <blockfilter.h> | #include <blockfilter.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <checkpoints.h> | #include <checkpoints.h> | ||||
#include <compat/sanity.h> | #include <compat/sanity.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <consensus/validation.h> | #include <consensus/validation.h> | ||||
#include <currencyunit.h> | |||||
#include <flatfile.h> | #include <flatfile.h> | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <hash.h> | #include <hash.h> | ||||
#include <httprpc.h> | #include <httprpc.h> | ||||
#include <httpserver.h> | #include <httpserver.h> | ||||
#include <index/blockfilterindex.h> | #include <index/blockfilterindex.h> | ||||
#include <index/txindex.h> | #include <index/txindex.h> | ||||
#include <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
▲ Show 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void SetupServerArgs(NodeContext &node) { | void SetupServerArgs(NodeContext &node) { | ||||
assert(!node.args); | assert(!node.args); | ||||
node.args = &gArgs; | node.args = &gArgs; | ||||
ArgsManager &argsman = *node.args; | ArgsManager &argsman = *node.args; | ||||
SetupHelpOptions(argsman); | SetupHelpOptions(argsman); | ||||
SetupCurrencyUnitOptions(argsman); | |||||
// server-only for now | // server-only for now | ||||
argsman.AddArg("-help-debug", | argsman.AddArg("-help-debug", | ||||
"Print help message with debugging options and exit", false, | "Print help message with debugging options and exit", false, | ||||
OptionsCategory::DEBUG_TEST); | OptionsCategory::DEBUG_TEST); | ||||
// whether to use eCash default unit and address prefix | |||||
argsman.AddArg("-ecash", "Use ecash as default unit (Default: false)", | |||||
ArgsManager::ALLOW_BOOL, OptionsCategory::OPTIONS); | |||||
const auto defaultBaseParams = | const auto defaultBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::MAIN); | CreateBaseChainParams(CBaseChainParams::MAIN); | ||||
const auto testnetBaseParams = | const auto testnetBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::TESTNET); | CreateBaseChainParams(CBaseChainParams::TESTNET); | ||||
const auto regtestBaseParams = | const auto regtestBaseParams = | ||||
CreateBaseChainParams(CBaseChainParams::REGTEST); | CreateBaseChainParams(CBaseChainParams::REGTEST); | ||||
const auto defaultChainParams = CreateChainParams(CBaseChainParams::MAIN); | const auto defaultChainParams = CreateChainParams(CBaseChainParams::MAIN); | ||||
▲ Show 20 Lines • Show All 2,582 Lines • Show Last 20 Lines |