A candidate block together with the per‐transaction data needed to finalize it.

Synopsis

Declared in <node/miner.h>

struct CBlockTemplate;

Data Members

Name

Description

block

The block being assembled.

m_coinbase_tx

The coinbase transaction fields set by the miner.

m_package_feerates

Package fee rates, ordered by selection into the template.

vTxFees

Fee of each transaction, excluding the coinbase.

vTxSigOpsCost

Sigops cost of each transaction, excluding the coinbase.

Non-Member Functions

Name

Description

WaitAndCreateNewBlock

Return a new block template when fees rise to a certain threshold or after a new tip; return nullopt if timeout is reached.

Created with MrDocs