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 and trie-db only.
Expand description

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

Storage keys from changesets are tagged as Plain or Hashed by the reader, so callers need not pass a use_hashed_state flag. Addresses are always hashed.