19 Commits

Author SHA1 Message Date
Richard Ramos
874e7c124d
Rename gossipsub to wakurelaysub 2021-03-24 09:42:37 -04:00
Steven Allen
08c17398fb feat: update to go-libp2p-core 0.7.0
Updates to the new stream interfaces. See
https://github.com/libp2p/go-libp2p-core/releases/tag/v0.7.0.
2020-11-12 09:02:55 +02:00
vyzo
d6c20b59fc remove multi-topic message support 2020-10-08 20:18:21 +03:00
vyzo
a3445b756f add support for priority topic delivery weights 2020-09-07 13:38:02 +03:00
vyzo
40762e1362 tweak duplicate/reject weights 2020-09-07 13:38:02 +03:00
vyzo
2ed9fd55ff decay global counters after 2 min
we want rapid reaction to spam attacks
2020-09-07 13:38:02 +03:00
vyzo
8191980fc8 decouple global coutner decay from source counter decay
So that we can have fast reaction, while retaining source counters for longer.
2020-09-07 13:38:02 +03:00
vyzo
1d21536720 add warning for failure to parse IP out of remote multiaddr 2020-09-07 13:38:02 +03:00
vyzo
c242b2e7be configure the peer gater using a parameter object, docs and stuff 2020-09-07 13:38:02 +03:00
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