[#node-CBlockTemplate] = xref:node.adoc[node]::CBlockTemplate :relfileprefix: ../ :mrdocs: A candidate block together with the per‐transaction data needed to finalize it. == Synopsis Declared in `<node/miner.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CBlockTemplate; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:node/CBlockTemplate/block.adoc[`block`] | The block being assembled. | xref:node/CBlockTemplate/m_coinbase_tx.adoc[`m_coinbase_tx`] | The coinbase transaction fields set by the miner. | xref:node/CBlockTemplate/m_package_feerates.adoc[`m_package_feerates`] | Package fee rates, ordered by selection into the template. | xref:node/CBlockTemplate/vTxFees.adoc[`vTxFees`] | Fee of each transaction, excluding the coinbase. | xref:node/CBlockTemplate/vTxSigOpsCost.adoc[`vTxSigOpsCost`] | Sigops cost of each transaction, excluding the coinbase. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:node/WaitAndCreateNewBlock.adoc[`WaitAndCreateNewBlock`] | Return a new block template when fees rise to a certain threshold or after a new tip; return nullopt if timeout is reached. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#