Function reth_node_core::rpc::compat::block::from_block
pub fn from_block(
block: BlockWithSenders,
total_difficulty: Uint<256, 4>,
kind: BlockTransactionsKind,
block_hash: Option<FixedBytes<32>>,
) -> Result<Block<WithOtherFields<Transaction>>, BlockError>
Expand description
Converts the given primitive block into a Block
response with the given
BlockTransactionsKind
If a block_hash
is provided, then this is used, otherwise the block hash is computed.