59 Commits

Author SHA1 Message Date
vyzo
8c0deb877d respec decay to zero parameter in counter decay 2020-04-18 11:09:06 +03:00
vyzo
b1aff8d752 add nil check in Score function
necessary for when the score is not specified in gossipsub router.
2020-04-18 11:09:06 +03:00
vyzo
398fb82e5f fix peer IP tracking structure 2020-04-18 11:09:06 +03:00
vyzo
20e3cf02b1 peer score refresh: counter decay and mesh activation 2020-04-18 11:09:06 +03:00
vyzo
38883df429 peer score calculation 2020-04-18 11:09:06 +03:00
vyzo
8d82c2bdec explicit Start for peer scoring to inject the router
so that we can unit test without a router.
2020-04-18 11:09:06 +03:00
vyzo
a02c4136b1 peer score parameters 2020-04-18 11:09:06 +03:00
vyzo
c13e9c07e4 hook peer score into control message handlers 2020-04-18 11:09:06 +03:00
vyzo
7d928697a2 peer score scaffolding 2020-04-18 11:09:06 +03:00