Dash Core  0.12.2.1
P2P Digital Currency
consensus.h File Reference

Go to the source code of this file.

Enumerations

enum  { LOCKTIME_VERIFY_SEQUENCE = (1 << 0), LOCKTIME_MEDIAN_TIME_PAST = (1 << 1) }
 

Functions

unsigned int MaxBlockSize (bool fDIP0001Active)
 
unsigned int MaxBlockSigOps (bool fDIP0001Active)
 

Variables

static const unsigned int MAX_LEGACY_BLOCK_SIZE = (1 * 1000 * 1000)
 
static const int COINBASE_MATURITY = 100
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Flags for nSequence and nLockTime locks

Enumerator
LOCKTIME_VERIFY_SEQUENCE 
LOCKTIME_MEDIAN_TIME_PAST 

Definition at line 26 of file consensus.h.

Function Documentation

◆ MaxBlockSigOps()

unsigned int MaxBlockSigOps ( bool  fDIP0001Active)
inline

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

Definition at line 18 of file consensus.h.

Referenced by CheckBlock(), ConnectBlock(), ContextualCheckBlock(), CreateNewBlock(), and getblocktemplate().

◆ MaxBlockSize()

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)

Definition at line 23 of file consensus.h.

Referenced by Consensus::CheckTxInputs(), CMerkleTx::GetBlocksToMaturity(), CTxMemPool::removeForReorg(), and TransactionDesc::toHTML().

◆ MAX_LEGACY_BLOCK_SIZE

const unsigned int MAX_LEGACY_BLOCK_SIZE = (1 * 1000 * 1000)
static

The maximum allowed size for a serialized block, in bytes (network rule)

Definition at line 11 of file consensus.h.

Referenced by CheckTransaction(), and MaxBlockSize().