-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MmrCache handling of merged checkpoints (#1937)
Merge pull request #1937 - A base node running in pruned mode will perform periodic merging of its oldest checkpoints, this can break the MmrCache or require a full reconstruction of the MmrCache. These changes allow the MmrCache to be informed of the checkpoint merges allowing internal changes to be made to accommodate the checkpoint changes. - Added the ability to inform the MmrCache that some checkpoints have been merged to allow the internal indices to be updated without requiring the entire MmrCache to be reconstructed. - Added the MerkleCheckpoint append function allowing different checkpoints to be merged. - Added a MmrCache checkpoint merging test to check the behaviour when checkpoint merge updates were performed on the checkpoints and MmrCache. * pull/1937/head: - A base node running in pruned mode will perform periodic merging of its oldest checkpoints, this can break the MmrCache or require a full reconstruction of the MmrCache. These changes allow the MmrCache to be informed of the checkpoint merges allowing internal changes to be made to accommodate the checkpoint changes. - Added the ability to inform the MmrCache that some checkpoints have been merged to allow the internal indices to be updated without requiring the entire MmrCache to be reconstructed. - Added the MerkleCheckpoint append function allowing different checkpoints to be merged. - Added a MmrCache checkpoint merging test to check the behaviour when checkpoint merge updates were performed on the checkpoints and MmrCache.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 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