reth_node_core::primitives::revm_primitives::db::components

Trait BlockHash

pub trait BlockHash {
    type Error;

    // Required method
    fn block_hash(&mut self, number: u64) -> Result<FixedBytes<32>, Self::Error>;
}

Required Associated Types§

type Error

Required Methods§

fn block_hash(&mut self, number: u64) -> Result<FixedBytes<32>, Self::Error>

Get block hash by block number

Implementations on Foreign Types§

§

impl<'a, T> BlockHash for &'a mut T
where T: 'a + BlockHash + ?Sized,

§

type Error = <T as BlockHash>::Error

§

fn block_hash( &mut self, number: u64, ) -> Result<FixedBytes<32>, <&'a mut T as BlockHash>::Error>

§

impl<T> BlockHash for &T
where T: BlockHashRef,

§

type Error = <T as BlockHashRef>::Error

§

fn block_hash( &mut self, number: u64, ) -> Result<FixedBytes<32>, <&T as BlockHash>::Error>

§

impl<T> BlockHash for Box<T>
where T: BlockHash + ?Sized,

§

type Error = <T as BlockHash>::Error

§

fn block_hash( &mut self, number: u64, ) -> Result<FixedBytes<32>, <Box<T> as BlockHash>::Error>

§

impl<T> BlockHash for Arc<T>
where T: BlockHashRef,

§

type Error = <T as BlockHashRef>::Error

§

fn block_hash( &mut self, number: u64, ) -> Result<FixedBytes<32>, <Arc<T> as BlockHash>::Error>

Implementors§