hyperledger-labs / Scorex

Scorex 2.0 Core
Apache License 2.0
544 stars 115 forks source link

Peers blacklisting #336

Closed oskin1 closed 5 years ago

oskin1 commented 5 years ago

Close #177

This PR implements the following blacklisting algorithm: Penalties are divided into 4 categories:

  1. NonDeliveryPenalty - applied when a peer did not deliver requested modifier in time
  2. MisbehaviorPenalty - applied when some modifier delivered by peer appeared to be invalid
  3. SpamPenalty - applied when a peer delivered non-requested modifier
  4. PermanentPenalty - applied to peers conforming to a different protocol (failed to parse message from a peer)
coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 47.185% when pulling f14d7a1c8bd1b8428ed756b1d1a46ca0dc74d79e on i177_2 into 61389071995059b5fe4fc04d6cf1d04a355d5b81 on master.

kushti commented 5 years ago

@oskin1 accepted, but please get tryWithLogging back