-
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.
Description --- Fixes the syncing of pruned nodes Motivation and Context --- The utxo and kernel keys are stored as LE bytes, but when reading with the order, they need to be BE bytes to return them in the same order as they were written. When we retrieve these for normal block sync, we call `.sort()` on them with the construction of the block so the order does not matter. But prune mode streams the utxo and kernels via MMR positions. For this, the order is important and needs to be returned in the same order as requested. This broke to do no cucumber tests testing prune mode sync. This should be fixed when enabling pruned mode. How Has This Been Tested? --- Manual and new unit tests. Fixes: #5099 --- BREAKING CHANGE: REQUIRES THAT BASE NODES RESYNC AND RECALCULATE DB KEYS
- Loading branch information
1 parent
48bf2d9
commit 8fa076a
Showing
2 changed files
with
128 additions
and
6 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