HomePhabricator

Introduce EraseLastKElementsIf to simplify the node eviction code

Description

Introduce EraseLastKElementsIf to simplify the node eviction code

Summary:
There is a redundant pattern in the SelectNodeToEvict algorithm, which can be fatorized to make the code easier to follow.

There is no change in behavior.

Ref T1634.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Maniphest Tasks: T1634

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

Details

Provenance
FabienAuthored on Aug 10 2021, 13:13
FabienPushed on Aug 10 2021, 13:50
Reviewer
Restricted Project
Differential Revision
D9863: Introduce EraseLastKElementsIf to simplify the node eviction code
Parents
rABC3133ab71d54e: [Cashtab] Moving BalanceHeader to stand alone component
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task