10 Commits

Author SHA1 Message Date
vyzo
45e1233b05 further tweak gate threshold weights 2020-09-07 13:38:02 +03:00
vyzo
be1b155d45 use IPs for peer gater stat tracking 2020-09-07 13:38:02 +03:00
vyzo
9f5b106a12 mix total accounting components with different weights 2020-09-07 13:38:02 +03:00
vyzo
6dbdaed793 count all rejections by default 2020-09-07 13:38:02 +03:00
vyzo
955344bf9b tweak probability threshold 2020-09-07 13:38:02 +03:00
vyzo
ff1b1a9772 also account for duplicates in gating decisions 2020-09-07 13:38:02 +03:00
vyzo
811ca922d4 add test for peer gater 2020-09-07 13:38:02 +03:00
vyzo
93f4f91dcf trace throttle peers to avoid breaking promises unfairly 2020-09-07 13:38:02 +03:00
vyzo
45272722d2 implement peer gater 2020-09-07 13:38:02 +03:00
vyzo
2bc51e0cf2 peer gater scaffolding 2020-09-07 13:38:02 +03:00