Skip to main content

create_block_template

Function create_block_template 

Source
pub fn create_block_template(
    utxo_set: &UtxoSet,
    mempool_txs: &[Transaction],
    height: Natural,
    prev_header: &BlockHeader,
    prev_headers: &[BlockHeader],
    coinbase_script: &ByteString,
    coinbase_address: &ByteString,
) -> Result<BlockTemplate>
Expand description

Spec-locked to Orange Paper Section 12.4: CreateBlockTemplate

Function ‘CreateBlockTemplate’ referenced but not yet in spec section 12.4 (Migration mode). Available: BlockTemplate Create a block template for mining