6#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
7#define BITCOIN_CONSENSUS_CONSENSUS_H
static const int MAX_COINBASE_SCRIPTSIG_SIZE
Coinbase scripts have their own script size limit.
static constexpr unsigned int LOCKTIME_VERIFY_SEQUENCE
Flags for nSequence and nLockTime locks.
static const uint64_t MAX_TX_SIZE
The maximum allowed size for a transaction, in bytes.
static const uint64_t LEGACY_MAX_BLOCK_SIZE
The maximum allowed size for a block, before the UAHF.
static const uint64_t ONE_MEGABYTE
1MB
static const uint64_t MIN_TX_SIZE
The minimum allowed size for a transaction, in bytes.
static const uint64_t DEFAULT_MAX_BLOCK_SIZE
Default setting for maximum allowed size for a block, in bytes.
uint64_t GetMaxBlockSigChecksCount(uint64_t maxBlockSize)
Compute the maximum number of sigchecks that can be contained in a block given the MAXIMUM block size...
static const int COINBASE_MATURITY
Coinbase transaction outputs can only be spent after this number of new blocks (network rule).
static const int BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO
The ratio between the maximum allowable block size and the maximum allowable SigChecks (executed sign...
static const uint64_t MAX_TX_SIGCHECKS
Allowed number of signature check operations per transaction.
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...