Page MenuHomePhabricator

[avalanche] Ban peers that send conflicting proofs repeatidly
ClosedPublic

Authored by Fabien on Jul 13 2022, 11:40.

Details

Summary

Sending a conflicting proof is a normal situation, however a peer sending several conflicting proofs in a short time frame is very likely adversarial. This diff adds a small banscore in case a conflicting proof is received while the conflicting proofs cooldown is not elapsed, which indicates such a behavior and will eventually ban the bad peer.

Test Plan
ninja all check-all

Diff Detail

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