-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change(state): Set iterator read bounds where possible in DiskDb (#7731)
* Adds zs_iter_opts method * uses checked_add * uses zs_range_iter for other read methods * fixes bug * Fixes bug in zs_iter_opts * Adds test & updates method docs * updates docs * Update zebra-state/src/service/finalized_state/disk_db/tests.rs * Corrects code comment * adds support for variable-sized keys * adds test case * Updates docs * Applies suggestions from code review * Add extra checks * Fix test code and rustfmt * fixes test * fixes test * adds reverse arg to new zs_range_iter calls --------- Co-authored-by: teor <[email protected]>
- Loading branch information
Showing
5 changed files
with
142 additions
and
52 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