pub trait BlockHash {
type Error: StdError;
// Required method
fn block_hash(&mut self, number: u64) -> Result<B256, Self::Error>;
}
Expand description
Trait for mutable access to block hash data. This is typically used for database implementations that may cache or lazily load block hashes.
Required Associated Types§
Required Methods§
Sourcefn block_hash(&mut self, number: u64) -> Result<B256, Self::Error>
fn block_hash(&mut self, number: u64) -> Result<B256, Self::Error>
Gets block hash by block number.