52 : chainParams(
std::move(chainParamsIn)) {}
const CChainParams & Params()
Return the currently selected parameters.
std::unique_ptr< CChainParams > CreateChainParams(const std::string &chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
CBaseChainParams defines the base parameters (shared between bitcoin-cli and bitcoind) of a given ins...
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
std::unique_ptr< CChainParams > chainParams
void SetChainParams(std::string net)
bool UseCashAddrEncoding() const override
bool SetMaxBlockSize(uint64_t maxBlockSize) override
uint64_t nMaxBlockSize
The largest block size this node will accept.
const CChainParams & GetChainParams() const override
void SetCashAddrEncoding(bool) override
uint64_t GetMaxBlockSize() const override
static GlobalConfig gConfig
const Config & GetConfig()
static const uint64_t LEGACY_MAX_BLOCK_SIZE
The maximum allowed size for a block, before the UAHF.
static const uint64_t DEFAULT_MAX_BLOCK_SIZE
Default setting for maximum allowed size for a block, in bytes.
Implement std::hash so RCUPtr can be used as a key for maps or sets.