Skip to main content

load_prefix_sets_with_provider

Function load_prefix_sets_with_provider 

Source
pub fn load_prefix_sets_with_provider<Provider>(
    provider: &Provider,
    range: RangeInclusive<u64>,
) -> Result<TriePrefixSets, ProviderError>
Available on crate features trie-db and trie only.
Expand description

Load prefix sets using a provider that implements ChangeSetReader. This function can read changesets from both static files and database.

The provider streams the changesets of the range. Addresses and storage slots are deduplicated across blocks before they are hashed.