The block chain is a tree shaped structure starting with the genesis block at the root,...
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...
Parameters that influence chain consensus.
int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, const Consensus::Params ¶ms)
Determine what nVersion a new block should use.
static const int32_t VERSIONBITS_TOP_BITS
What bits to set in version for versionbits blocks.