Skip to content
Unverified Commit d2dff5f1 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

network/tx: Ban peers with tx that fail to decode (#5002)



A malicious peer can submit random bytes on transaction protocol.
In this case, the peer is not disconnected or reported back to the
peerstore.

This PR ensures the peer's reputation is properly reported.

Discovered during testing:
- https://github.com/paritytech/polkadot-sdk/pull/4977


cc @paritytech/networking

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
parent 4aa29a41
Pipeline #485012 waiting for manual action with stages
in 1 hour, 22 minutes, and 9 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment