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
Branch
avalanche_ban_repeated_conflicting_proofs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19627
Build 38973: Build Diffbuild-clang-tidy · build-without-wallet · build-debug · lint-circular-dependencies · build-clang · build-diff
Build 38972: arc lint + arc unit