Type Alias RefLookup

Source
pub type RefLookup<'a, 'cache, Q> = Lookup<'a, 'cache, ExtensionLayout, Q>;

Aliased Type§

struct RefLookup<'a, 'cache, Q> {
    pub db: &'a dyn HashDBRef<KeccakHasher, Vec<u8>>,
    pub query: Q,
    pub hash: [u8; 32],
    pub cache: Option<&'cache mut dyn TrieCache<ReferenceNodeCodec<KeccakHasher>>>,
    pub recorder: Option<&'cache mut dyn TrieRecorder<[u8; 32]>>,
}

Fields§

§db: &'a dyn HashDBRef<KeccakHasher, Vec<u8>>

database to query from.

§query: Q

Query object to record nodes and transform data.

§hash: [u8; 32]

Hash to start at

§cache: Option<&'cache mut dyn TrieCache<ReferenceNodeCodec<KeccakHasher>>>

Optional cache that should be used to speed up the lookup.

§recorder: Option<&'cache mut dyn TrieRecorder<[u8; 32]>>

Optional recorder that will be called to record all trie accesses.