Function reth_rpc_types_compat::block::from_block_full
source ยท pub fn from_block_full(
block: BlockWithSenders,
total_difficulty: U256,
block_hash: Option<B256>,
) -> Result<Block<WithOtherFields<Transaction>>, BlockError>
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
[Transaction
] objects: [BlockTransactions::Full
]