-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change(scan): Use the on-disk database for keys and results (#8036)
* Expose IntoDisk and FromDisk in zebra-state * Implement database serialization for SaplingScanningKey Strings * Implement serialization for Vec<SaplingScannedResult> (Vec<transaction::Hash>) * Implement seralization for SaplingScannedDatabaseIndex * Add an is_empty() method * Add a read method for a specific index, and document it * Implement writing scanner results to the database * Make read name more explicit * Implement writing scanner keys * Implement reading sapling keys * Spawn blocking tasks correctly in async code * Change storage results methods to use the database * Update tests that use storage * Use spawn_blocking() for database methods * Change the check interval to slightly less than the block interval * Expose raw database methods with shielded-scan * fix `scan_task_starts` test * minor doc change in test --------- Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
- Loading branch information
1 parent
8c717c9
commit db05845
Showing
16 changed files
with
546 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ pub mod storage; | |
mod tests; | ||
|
||
pub use config::Config; | ||
pub use init::init; | ||
pub use init::{init, spawn_init}; |
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.