Page MenuHomePhabricator

[avalanche] Move the invalid proofs filter to the peer manager
ClosedPublic

Authored by Fabien on Nov 3 2023, 16:14.

Details

Summary

This is actually a global in net_processing, move it to the peer manager where it belongs and gives accessors.
This will make it possible to declare a proof invalid from a RPC (future diff).

There is no change of behavior.

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.Nov 3 2023, 16:14
PiRK accepted this revision.EditedNov 3 2023, 16:25
PiRK added a subscriber: PiRK.

nice wrapping, one less mutex and one less global

This revision is now accepted and ready to land.Nov 3 2023, 16:25