-
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.
fix(pruned mode)!: prune inputs, allow horizon sync resume and other …
…fixes (#3521) Description --- - delete inputs behind pruning horizon during pruned mode cleanup - keep cumulative utxo_sum and kernel_sum in `BlockAccumulatedData` - prune spent outputs that may have not been pruned in previous horizon sync - bugfix: check rangeproof validation result in horizon sync (failed validation was ignored) - parallelize rangeproof verification for horizon sync - prune blocks between new and old horizon height if necessary before syncing - fix off-by-one in pruning horizon (pruning horizon is consistently defined as the last pruned block inclusive) - minor optimisations in horizon sync - new blockchain db unit tests Motivation and Context --- Inputs behind the pruning horizon were not pruned as propagated blocks arrive. Breaking change: Blockchain database will need to be resynced Based on #3520 How Has This Been Tested? --- Cucumber tests pass Manually, horizon sync to tip and wallet recovery
- Loading branch information
Showing
35 changed files
with
973 additions
and
778 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
Oops, something went wrong.