Function generate_coinbase_and_roots

Source
pub fn generate_coinbase_and_roots(
    network: &Network,
    height: Height,
    miner_address: &Address,
    mempool_txs: &[VerifiedUnminedTx],
    chain_history_root: Option<ChainHistoryMmrRootHash>,
    miner_data: Vec<u8>,
) -> Result<(TransactionTemplate<NegativeOrZero>, DefaultRoots), &'static str>
Expand description

Generates and returns the coinbase transaction and default roots.