-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Memtrie] Implement trie iterator based on memtrie. (#11299)
Closes #11278 This mostly copies from the on-disk trie implementation except adapting it to memtrie data structures. This eliminates the sole remaining disk-trie use during normal validator node operation (when memtrie is enabled), remove_account. The memtrie implementation requires a different API because there's no way to grab a read lock and construct an iterator at the same time, due to there necessarily being two layers of lifetimes. So whereas we used to have Trie::iter(), we now must have Trie::lock_for_iter() and then use the result to .iter().
- Loading branch information
1 parent
1479c90
commit a7a4f31
Showing
25 changed files
with
519 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.