pub fn select_mempool_transactions(
    network: &Network,
    next_block_height: Height,
    miner_address: &Address,
    mempool_txs: Vec<VerifiedUnminedTx>,
    mempool_tx_deps: TransactionDependencies,
    like_zcashd: bool,
    extra_coinbase_data: Vec<u8>,
) -> Vec<VerifiedUnminedTx>
Expand description

Selects mempool transactions for block production according to ZIP-317, using a fake coinbase transaction and the mempool.

The fake coinbase transaction’s serialized size and sigops must be at least as large as the real coinbase transaction. (The real coinbase transaction depends on the total fees from the transactions returned by this function.) If like_zcashd is true, try to match the coinbase transactions generated by zcashd in the getblocktemplate RPC.

Returns selected transactions from mempool_txs.