Browse Source

stop peer if evidence is not valid

pull/1244/head
Anton Kaliaev 7 years ago
parent
commit
d0c67bbe16
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      evidence/reactor.go

+ 2
- 1
evidence/reactor.go View File

@ -96,7 +96,8 @@ func (evR *EvidenceReactor) Receive(chID byte, src p2p.Peer, msgBytes []byte) {
err := evR.evpool.AddEvidence(ev)
if err != nil {
evR.Logger.Info("Evidence is not valid", "evidence", msg.Evidence, "err", err)
// TODO: punish peer
// punish peer
evR.Switch.StopPeerForError(src, err)
}
}
default:


Loading…
Cancel
Save