We can use the rejectProof facility for newly invalidated proofs. This avoids a duplicate and makes the code more readable. There is no change in behavior.
Ref T1854.
Depends on D10711.
Differential D10712
[avalanche] Simplify the updatedBlockTip handler Fabien on Dec 21 2021, 09:24. Authored by
Details
We can use the rejectProof facility for newly invalidated proofs. This avoids a duplicate and makes the code more readable. There is no change in behavior. Ref T1854. Depends on D10711. ninja all check-all
Diff Detail
Event TimelineComment Actions The iterating over proofs instead of peers looks better, and the removal logic appears correctly deduplicated without change in behavior. |