Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.h
Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | public: | ||||
* @return true if argument gets set, false if it already had a value | * @return true if argument gets set, false if it already had a value | ||||
*/ | */ | ||||
bool SoftSetBoolArg(const std::string &strArg, bool fValue); | bool SoftSetBoolArg(const std::string &strArg, bool fValue); | ||||
// Forces an arg setting. Called by SoftSetArg() if the arg hasn't already | // Forces an arg setting. Called by SoftSetArg() if the arg hasn't already | ||||
// been set. Also called directly in testing. | // been set. Also called directly in testing. | ||||
void ForceSetArg(const std::string &strArg, const std::string &strValue); | void ForceSetArg(const std::string &strArg, const std::string &strValue); | ||||
// Forces a boolean arg setting, used only in testing. | |||||
void ForceSetBoolArg(const std::string &strArg, bool fValue); | |||||
// Forces a multi arg setting, used only in testing | // Forces a multi arg setting, used only in testing | ||||
void ForceSetMultiArg(const std::string &strArg, | void ForceSetMultiArg(const std::string &strArg, | ||||
const std::string &strValue); | const std::string &strValue); | ||||
/** | /** | ||||
* Looks for -regtest, -testnet and returns the appropriate BIP70 chain | * Looks for -regtest, -testnet and returns the appropriate BIP70 chain | ||||
* name. | * name. | ||||
* @return CBaseChainParams::MAIN by default; raises runtime error if an | * @return CBaseChainParams::MAIN by default; raises runtime error if an | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |