Page MenuHomePhabricator

Introduce EraseLastKElementsIf to simplify the node eviction code
ClosedPublic

Authored by Fabien on Aug 10 2021, 13:18.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC1f07a6833500: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Aug 10 2021, 13:18
This revision is now accepted and ready to land.Aug 10 2021, 13:26
Fabien retitled this revision from Introduce EraseLastKElementsIf to siimplify the node eviction code to Introduce EraseLastKElementsIf to simplify the node eviction code.Aug 10 2021, 13:29