Skip to main content

create_block_template_with_outputs

Function create_block_template_with_outputs 

Source
pub fn create_block_template_with_outputs(
    utxo_set: &HashMap<OutPoint, Arc<UTXO>, FxBuildHasher>,
    mempool_txs: &[Transaction],
    height: u64,
    prev_header: &BlockHeader,
    prev_headers: &[BlockHeader],
    coinbase_script: &Vec<u8>,
    coinbase_outputs: &[(i64, Vec<u8>)],
    network: Network,
    mempool_witnesses: Option<&[Option<Vec<Vec<Vec<u8>>>>]>,
) -> Result<BlockTemplate, ConsensusError>
Expand description

Same as create_block_template, then replace the coinbase and merkle root.