Bitcoin Core 31.99.0
P2P Digital Currency
Variables
consensus.h File Reference
#include <cstddef>
#include <cstdint>
Include dependency graph for consensus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr unsigned int MAX_BLOCK_SERIALIZED_SIZE {4'000'000}
 The maximum allowed size for a serialized block, in bytes (only for buffer size limits) More...
 
constexpr unsigned int MAX_BLOCK_WEIGHT {4'000'000}
 The maximum allowed weight for a block, see BIP 141 (network rule) More...
 
constexpr int64_t MAX_BLOCK_SIGOPS_COST {80'000}
 The maximum allowed number of signature check operations in a block (network rule) More...
 
constexpr int COINBASE_MATURITY = 100
 Coinbase transaction outputs can only be spent after this number of new blocks (network rule) More...
 
constexpr int WITNESS_SCALE_FACTOR = 4
 
constexpr size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60
 
constexpr size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10
 
constexpr unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0)
 Flags for nSequence and nLockTime locks. More...
 
constexpr int64_t MAX_TIMEWARP = 600
 Maximum number of seconds that the timestamp of the first block of a difficulty adjustment period is allowed to be earlier than the last block of the previous period (BIP94). More...
 

Variable Documentation

◆ COINBASE_MATURITY

constexpr int COINBASE_MATURITY = 100
inlineconstexpr

Coinbase transaction outputs can only be spent after this number of new blocks (network rule)

Definition at line 19 of file consensus.h.

◆ LOCKTIME_VERIFY_SEQUENCE

constexpr unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0)
inlineconstexpr

Flags for nSequence and nLockTime locks.

Interpret sequence numbers as relative lock-time constraints.

Definition at line 28 of file consensus.h.

◆ MAX_BLOCK_SERIALIZED_SIZE

constexpr unsigned int MAX_BLOCK_SERIALIZED_SIZE {4'000'000}
inlineconstexpr

The maximum allowed size for a serialized block, in bytes (only for buffer size limits)

Definition at line 13 of file consensus.h.

◆ MAX_BLOCK_SIGOPS_COST

constexpr int64_t MAX_BLOCK_SIGOPS_COST {80'000}
inlineconstexpr

The maximum allowed number of signature check operations in a block (network rule)

Definition at line 17 of file consensus.h.

◆ MAX_BLOCK_WEIGHT

constexpr unsigned int MAX_BLOCK_WEIGHT {4'000'000}
inlineconstexpr

The maximum allowed weight for a block, see BIP 141 (network rule)

Definition at line 15 of file consensus.h.

◆ MAX_TIMEWARP

constexpr int64_t MAX_TIMEWARP = 600
inlineconstexpr

Maximum number of seconds that the timestamp of the first block of a difficulty adjustment period is allowed to be earlier than the last block of the previous period (BIP94).

Definition at line 35 of file consensus.h.

◆ MIN_SERIALIZABLE_TRANSACTION_WEIGHT

constexpr size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10
inlineconstexpr

Definition at line 24 of file consensus.h.

◆ MIN_TRANSACTION_WEIGHT

constexpr size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60
inlineconstexpr

Definition at line 23 of file consensus.h.

◆ WITNESS_SCALE_FACTOR

constexpr int WITNESS_SCALE_FACTOR = 4
inlineconstexpr

Definition at line 21 of file consensus.h.