Trait reth_trie_db::DatabaseHashedPostState

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

Extends [HashedPostState] with operations specific for working with a database transaction.

Required Methods§

source

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

Initializes [HashedPostState] from reverts. Iterates over state reverts from the specified block up to the current tip and aggregates them into hashed state in reverse.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<TX: DbTx> DatabaseHashedPostState<TX> for HashedPostState

source§

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

Implementors§