reth_node_core::primitives::revm_primitives::db

Trait BlockHashRef

pub trait BlockHashRef {
    type Error;

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

Required Associated Types§

type Error

Required Methods§

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

Get block hash by block number

Implementations on Foreign Types§

§

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

§

type Error = <T as BlockHashRef>::Error

§

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

§

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

§

type Error = <T as BlockHashRef>::Error

§

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

§

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

§

type Error = <T as BlockHashRef>::Error

§

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

§

impl<T> BlockHashRef for Rc<T>
where T: BlockHashRef + ?Sized,

§

type Error = <T as BlockHashRef>::Error

§

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

§

impl<T> BlockHashRef for Arc<T>
where T: BlockHashRef + ?Sized,

§

type Error = <T as BlockHashRef>::Error

§

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

Implementors§