reth_trie_db

Trait DatabaseHashedStorage

Source
pub trait DatabaseHashedStorage<TX>: Sized {
    // Required method
    fn from_reverts(
        tx: &TX,
        address: Address,
        from: BlockNumber,
    ) -> Result<Self, DatabaseError>;
}
Expand description

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

Required Methods§

Source

fn from_reverts( tx: &TX, address: Address, from: BlockNumber, ) -> 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.

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§