reth::rpc::compat::block

Function from_block_full

pub fn from_block_full<T, B>(
    block: BlockWithSenders<B>,
    block_hash: Option<FixedBytes<32>>,
    tx_resp_builder: &T,
) -> Result<Block<<T as TransactionCompat<<<B as Block>::Body as BlockBody>::Transaction>>::Transaction, Header<<B as Block>::Header>>, <T as TransactionCompat<<<B as Block>::Body as BlockBody>::Transaction>>::Error>
where T: TransactionCompat<<<B as Block>::Body as BlockBody>::Transaction>, B: Block,
Expand description

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

This will populate the transactions field with the full TransactionCompat::Transaction objects: BlockTransactions::Full