Function zebra_rpc::methods::get_block_template_rpcs::get_block_template::calculate_default_root_hashes
source ยท pub fn calculate_default_root_hashes(
coinbase_txn: &UnminedTx,
mempool_txs: &[VerifiedUnminedTx],
chain_history_root: ChainHistoryMmrRootHash,
) -> DefaultRoots
Expand description
Returns the default block roots for the supplied coinbase and mempool transactions, and the supplied history tree.
This function runs expensive cryptographic operations.