HomePhabricator

[avalanche] Fix UB in the reward rank comparator

Description

[avalanche] Fix UB in the reward rank comparator

Summary: On the first iteration of the loop there is no selected proof yet.

Test Plan:
With ubsan:

ninja check-avalanche

Reviewers: #bitcoin_abc, roqqit

Reviewed By: #bitcoin_abc, roqqit

Differential Revision: https://reviews.bitcoinabc.org/D17497

Details

Provenance
FabienAuthored on Wed, Jan 8, 21:13
FabienPushed on Wed, Jan 8, 21:46
Reviewer
Restricted Project
Differential Revision
D17497: [avalanche] Fix UB in the reward rank comparator
Parents
rABC11d2e76dd3c3: [avalanche] Refactor reward ranking logic into its own comparator
Branches
Unknown
Tags
Unknown