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.
Details
Details
- Reviewers
sdulfari - Group Reviewers
Restricted Project - Commits
- rABC25b171bd59e1: [avalanche] Ban peers that send conflicting proofs repeatidly
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
test/functional/abc_p2p_avalanche_proof_voting.py | ||
---|---|---|
517 ↗ | (On Diff #34349) | can be just sequence = 100 |