DatabaseHashedPostState

Trait DatabaseHashedPostState 

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

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

Required Methods§

fn from_reverts<KH>(tx: &TX, from: u64) -> Result<Self, DatabaseError>
where KH: KeyHasher,

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.

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§