Struct evm::BlockhashState
[−]
[src]
pub struct BlockhashState(_);
A struct that manages the current blockhash state for one EVM.
Methods
impl BlockhashState
[src]
fn require(&self, number: U256) -> Result<(), RequireError>
[src]
Require a blockhash to be existed. If not, requires a
RequireError
.
fn commit(&mut self, number: U256, hash: H256) -> Result<(), CommitError>
[src]
Commit a new blockhash. Blockhashes are immutable so the client should be able to use this for other concurrently running EVMs.
fn get(&self, number: U256) -> Result<H256, RequireError>
[src]
Get a blockhash by its number.
Trait Implementations
impl Debug for BlockhashState
[src]
impl Clone for BlockhashState
[src]
fn clone(&self) -> BlockhashState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for BlockhashState
[src]
fn default() -> BlockhashState
[src]
Returns the "default value" for a type. Read more