-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(store): add atomic write for sequencer and executor (#2776)
* feat(rooch-store): add pop_unsaved_nodes and save_sequenced_tx Introduce methods to handle unsaved nodes for atomic updates. Enhanced sequencer and accumulator logic to support batch saves. * fix(rooch-sequencer): correct sequencer info initialization Fix initialization of SequencerInfo by passing correct tx_order variable. Removed unnecessary flush call on tx_accumulator to prevent redundant operations. * feat(rooch-store): add test for accumulator popping unsaved nodes Introduce a new test to validate the behavior of MerkleAccumulator when popping unsaved nodes and ensuring correct leaf retrieval. This enhances the robustness of accumulator operations within RoochStore. * refactor(moveos-store): decouple change set processing for atomic updates Refactored the `apply_change_set` method by extracting the node processing into `change_set_to_nodes`. Updated relevant metrics and streamlined transaction handling for node, config, and transaction store updates. This enhances modularity and maintainability. * fix(moveos-store): reorder column family initialization Reorders column family names initialization to ensure proper sequence for write batch operations. This change improves the readability and maintainability of the code by grouping related commands together. * fix(moveos-store): fix write batch column family handling * fix(rooch-store): reorder column family name push Reorder the push of column family names to ensure batch creating is ok
- Loading branch information
Showing
10 changed files
with
175 additions
and
71 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
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.