Skip to main content

insert_history

Function insert_history 

Source
pub fn insert_history<'a, 'b, Provider>(
    provider: &Provider,
    alloc: impl Iterator<Item = (&'a Address, &'b GenesisAccount)> + Clone,
    block: u64,
) -> Result<(), ProviderError>
Available on crate feature provider only.
Expand description

Inserts history indices for genesis accounts and storage.

Writes to either MDBX or RocksDB based on storage settings configuration, using EitherWriter to abstract over the storage backend.