Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: non-aligned BLS serialization within MNLISTDIFF (#5151)
## Issue being fixed or feature implemented When constructing `CSimplifiedMNListDiff`, `CSimplifiedMNListDiff::nVersion` is set to 2 if the v19 fork is active. It turns out that `CSimplifiedMNListEntry::nVersion` wasn't set to 2 as well as it was supposed. Because we used `emplace_back` when filling the list of `CSimplifiedMNListEntry`, this actually constructed the object with the default value of 1 instead of copying it. Surprising but I managed to see that while debugging. ## What was done? ## How Has This Been Tested? ## Breaking Changes ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation **For repository code-owners and collaborators only** - [x] I have assigned this pull request to a milestone Co-authored-by: pasta <[email protected]>
- Loading branch information