Skip to content

Commit

Permalink
decrease peer honesty for malicios signer, since it has been increase…
Browse files Browse the repository at this point in the history
…d optimistically
  • Loading branch information
ssd04 committed Jun 24, 2022
1 parent 4961c7a commit 291b6f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consensus/spos/bls/subroundEndRound.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ func (sr *subroundEndRound) verifyNodesOnAggSigVerificationFail() error {
if err != nil {
return err
}

sr.PeerHonestyHandler().ChangeScore(
pk,
spos.GetConsensusTopicID(sr.ShardCoordinator()),
spos.ValidatorPeerHonestyDecreaseFactor,
)
}

log.Trace("verifyNodesOnAggSigVerificationFail: verifying signature share", "public key", pk, "is successfull", isSuccessfull)
Expand Down

0 comments on commit 291b6f9

Please sign in to comment.