Skip to content

Commit

Permalink
update comment to match upstream diff
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Dec 1, 2023
1 parent 0717b42 commit c760302
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions substrate/primitives/trie/src/recorder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,14 @@ impl<H: Hasher> Clone for Recorder<H> {
}

impl<H: Hasher> Recorder<H> {
/// Keys for which we have recorded the trie nodes till now.
/// Note that this does not modify the internals, rather returns snapshot of the recorded keys.
/// There can be multiple storage root in case we are tracking more than one tries.
/// Returns [`RecordedForKey`] per recorded key per trie.
///
/// There are multiple tries when working with e.g. child tries.
pub fn recorded_keys(&self) -> HashMap<<H as Hasher>::Out, HashMap<Arc<[u8]>, RecordedForKey>> {
let inner = self.inner.lock();
inner.recorded_keys.clone()
}


/// Returns the recorder as [`TrieRecorder`](trie_db::TrieRecorder) compatible type.
///
/// - `storage_root`: The storage root of the trie for which accesses are recorded. This is
Expand Down

0 comments on commit c760302

Please sign in to comment.