-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rooch-db): add repair command in database module (#2849)
* feat(rooch-db): simplify error handling in write_batch Streamline error handling by removing unnecessary unwrapping in delete and put operations. This improves code readability and reduces potential runtime panics. * feat(rooch-da): add repair command in database module Introduce a new RepairCommand to the database module, allowing users to repair database issues. The command has options for execution, base data directory, and chain ID. * refactor(rooch-store): improve data repair and validation logic Enhanced the data repair mechanisms and added detailed validation logic. This improves consistency checks and ensures data integrity during repairs. * feat(rooch-db): add thorough store check and logging Introduce a detailed check for MoveOS store state root consistency with enhanced logging for DA repair outcomes. This enhances diagnostic capability by outputting information on issues and repairs conducted. * feat(rooch-db): integrate RepairCommand into DBCommand Add RepairCommand execution capability to the DBCommand enum, allowing repair operations via CLI. Updated error handling to use RoochResult in repair.rs. * refactor(rooch-store): simplify append_submitting_block function Remove redundant parameters in append_submitting_block methods for clarity and efficiency. This change reduces the function's signature complexity and ensures that last_block_number is determined internally, streamlining the block submission process. * fix(rooch-da): add last_block_number to check_append
- Loading branch information
Showing
12 changed files
with
385 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.