const CChainParams & Params()
Return the currently selected parameters.
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
bool UseCashAddrEncoding() const override
bool SetMaxBlockSize(uint64_t maxBlockSize) override
void SetChainParams(const CChainParams chainParamsIn) override
uint64_t nMaxBlockSize
The largest block size this node will accept.
std::optional< const CChainParams > chainParams
const CChainParams & GetChainParams() const override
void SetCashAddrEncoding(bool) override
uint64_t GetMaxBlockSize() const override
const Config & GetConfig()
static GlobalConfig gConfig
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.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...