11 Commits

Author SHA1 Message Date
Yahya Hassanzadeh
8866ca88a1
Enables non-atomic validation for peer scoring parameters (#499)
* decouples topic scoring parameters

* adds skiping atomic validation for topic parameters

* cleans up

* adds skip atomic validation to peer score threshold

* adds skip atomic validation for peer parameters

* adds test for non-atomic validation

* adds tests for peer score

* adds tests for peer score thresholds

* refactors tests
2022-09-08 08:20:23 +03:00
Marten Seemann
4f56e8f0a7
update go-libp2p to v0.22.0 (#498)
* update go-libp2p to v0.22.0

* skip TestGossipsubConnTagMessageDeliveries
2022-08-26 02:45:41 -07:00
nisdas
7644a650ff add last amount of validation 2021-03-31 18:27:14 +03:00
nisdas
3ea6751619 add threshold validation 2021-03-31 18:27:14 +03:00
nisdas
5cd1316efc strengthen validation 2021-03-31 18:27:14 +03:00
vyzo
6323982964 fix test for behaviour penalty validation 2020-05-06 19:41:53 +03:00
vyzo
ee0aef578c add p7 configuration to score parameters 2020-05-06 19:41:53 +03:00
vyzo
d9788290f3 add utility function for computing score parameter decays 2020-04-29 22:40:44 +03:00
vyzo
ece06b6d34 restore coverage for score_params.go 2020-04-22 22:17:53 +03:00
vyzo
61a13a3ed7 validate that TimeInMeshQuantum is non-zero
otherwise we get a division by zero
2020-04-22 21:52:10 +03:00
vyzo
8cf53daab6 add test for peer score parameter validation 2020-04-21 17:33:46 +03:00