Function from_block_with_tx_hashes

pub fn from_block_with_tx_hashes<T, B>(
    block: RecoveredBlock<B>,
) -> Block<T, Header<<B as Block>::Header>>
where B: Block,
Expand description

Create a new Block response from a RecoveredBlock, using the total difficulty to populate its field in the rpc response.

This will populate the transactions field with only the hashes of the transactions in the block: BlockTransactions::Hashes