-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4311: Short-circuit initialization of block and deploy metadata DB r=rafal-ch a=rafal-ch Make both `initialize_block_metadata_db()` and `initialize_deploy_metadata_db()` a no-op if there is no data to be purged on storage initialization. Additionally, in case purging happens, hash of the purged blocks will be logged, like so: ``` 2023-10-04T10:12:48.855232Z DEBUG init{; node_id=tls:7ebd..32a6}: [casper_node::components::storage storage.rs:3005] purged metadata for block 032b..0011 2023-10-04T10:12:48.855243Z DEBUG init{; node_id=tls:7ebd..32a6}: [casper_node::components::storage storage.rs:3005] purged metadata for block 2d5c..5602 ``` Co-authored-by: Rafał Chabowski <rafal@casperlabs.io>
- Loading branch information
Showing
2 changed files
with
178 additions
and
38 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