Function sp_trie::read_trie_first_descendant_value
source · pub fn read_trie_first_descendant_value<L: TrieLayout, DB>(
db: &DB,
root: &TrieHash<L>,
key: &[u8],
recorder: Option<&mut dyn TrieRecorder<TrieHash<L>>>,
cache: Option<&mut dyn TrieCache<L::Codec>>,
) -> Result<Option<MerkleValue<TrieHash<L>>>, Box<TrieError<L>>>
Expand description
Read the trie_db::MerkleValue
of the node that is the closest descendant for
the provided key.