DatabaseHashedStorage

Trait DatabaseHashedStorage 

pub trait DatabaseHashedStorage<TX>: Sized {
    // Required method
    fn from_reverts(
        tx: &TX,
        address: Address,
        from: u64,
    ) -> Result<Self, DatabaseError>;
}
Available on crate features trie and trie-db only.
Expand description

Extends HashedStorage with operations specific for working with a database transaction.

Required Methods§

fn from_reverts( tx: &TX, address: Address, from: u64, ) -> Result<Self, DatabaseError>

Initializes HashedStorage from reverts. Iterates over storage reverts from the specified block up to the current tip and aggregates them into hashed storage in reverse.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<TX> DatabaseHashedStorage<TX> for HashedStorage
where TX: DbTx,