cuprate_blockchain::ops::block

Function get_block_blob_with_tx_indexes

Source
pub fn get_block_blob_with_tx_indexes(
    block_height: &BlockHeight,
    tables: &impl Tables,
) -> Result<(Vec<u8>, u64, usize), RuntimeError>
Expand description

Retrieve a block’s raw bytes, the index of the miner transaction and the number of non miner-txs in the block.

§Errors

This function returns cuprate_database::RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.