Page MenuHomePhabricator

Disconnect peers violating blocks-only mode
ClosedPublic

Authored by deadalnix on Jun 7 2020, 13:24.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCa93f717e006c: Disconnect peers violating blocks-only mode
Summary

If we set fRelay=false in our VERSION message, and a peer sends an INV or TX
message anyway, disconnect. Since we use fRelay=false to minimize bandwidth,
we should not tolerate remaining connected to a peer violating the protocol.

This is a partial backport of Core PR15759 : https://github.com/bitcoin/bitcoin/pull/15759/commits/0ba08020c9791f7caf5986ad6490c16a2b66cd83

Depends on D6424

Test Plan
ninja all check-all

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Jun 7 2020, 22:25