HomePhabricator

[avalanche] Properly remove pending node when possible

Description

[avalanche] Properly remove pending node when possible

Summary:
Calling removeNode attempt to remove from the pending node set only after it checked the node is in the regulat set, which is obviously an impossible case.

This diff restores the expected behavior and remove the node appropriately. It closes the gap in the unit tests that failed to catch this issue.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, tyler-smith

Reviewed By: #bitcoin_abc, tyler-smith

Subscribers: tyler-smith

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

Details

Provenance
FabienAuthored on Apr 4 2022, 15:46
FabienPushed on Apr 6 2022, 12:18
Reviewer
Restricted Project
Differential Revision
D11300: [avalanche] Properly remove pending node when possible
Parents
rABCe92930083c32: txmempool: add thread safety annotations
Branches
Unknown
Tags
Unknown