Bitcoin
Variables
consensus.h File Reference
#include <stdlib.h>
#include <stdint.h>

Go to the source code of this file.

Variables

static const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000
 
static const unsigned int MAX_BLOCK_WEIGHT = 4000000
 
static const int64_t MAX_BLOCK_SIGOPS_COST = 80000
 
static const int COINBASE_MATURITY = 100
 
static const int WITNESS_SCALE_FACTOR = 4
 
static const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60
 
static const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10
 
static constexpr unsigned int LOCKTIME_VERIFY_SEQUENCE = (1 << 0)
 
static constexpr unsigned int LOCKTIME_MEDIAN_TIME_PAST = (1 << 1)
 

Variable Documentation

◆ COINBASE_MATURITY

const int COINBASE_MATURITY = 100
static

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

◆ LOCKTIME_MEDIAN_TIME_PAST

constexpr unsigned int LOCKTIME_MEDIAN_TIME_PAST = (1 << 1)
static

Use GetMedianTimePast() instead of nTime for end point timestamp.

◆ LOCKTIME_VERIFY_SEQUENCE

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

Flags for nSequence and nLockTime locks Interpret sequence numbers as relative lock-time constraints.

◆ MAX_BLOCK_SERIALIZED_SIZE

const unsigned int MAX_BLOCK_SERIALIZED_SIZE = 4000000
static

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

◆ MAX_BLOCK_SIGOPS_COST

const int64_t MAX_BLOCK_SIGOPS_COST = 80000
static

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

◆ MAX_BLOCK_WEIGHT

const unsigned int MAX_BLOCK_WEIGHT = 4000000
static

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

◆ MIN_SERIALIZABLE_TRANSACTION_WEIGHT

const size_t MIN_SERIALIZABLE_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 10
static

◆ MIN_TRANSACTION_WEIGHT

const size_t MIN_TRANSACTION_WEIGHT = WITNESS_SCALE_FACTOR * 60
static

◆ WITNESS_SCALE_FACTOR

const int WITNESS_SCALE_FACTOR = 4
static