pub fn fake_coinbase_transaction(
    network: &Network,
    height: Height,
    miner_address: &Address,
    like_zcashd: bool,
    extra_coinbase_data: Vec<u8>,
) -> TransactionTemplate<NegativeOrZero>
Expand description

Returns a fake coinbase transaction that can be used during transaction selection.

This avoids a data dependency loop involving the selected transactions, the miner fee, and the coinbase transaction.

This transaction’s serialized size and sigops must be at least as large as the real coinbase transaction with the correct height and fee.

If like_zcashd is true, try to match the coinbase transactions generated by zcashd in the getblocktemplate RPC.