Skip to content
Commit b0b2b679 authored by Dmitry Markin's avatar Dmitry Markin Committed by GitHub
Browse files

Punish peers for duplicate GRANDPA neighbor messages (#12462)



* Decrease peer reputation for duplicate GRANDPA neighbor messages.

* Fix comparison

* Fix update_peer_state() validity condition

* Add negative test

* Rework update_peer_state() validity condition, add tests

* update_peer_state() validity condition: invert comparison

* Split InvalidViewChange and DuplicateNeighborMessage misbehaviors

* Enforce rate-limiting of duplicate GRANDPA neighbor packets

* Update client/finality-grandpa/src/communication/gossip.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Make rolling clock back in a test safer

Co-authored-by: default avatarAndré Silva <[email protected]>
parent b38c4165
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