27 Commits

Author SHA1 Message Date
Hlib Kanunnikov
7038c82c21
chores: bump go-libp2p (#558) 2024-05-20 16:20:16 -07: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
Wondertan
0e687f24a6 feat: integrate msgIdGenerator 2022-01-23 09:29:32 +02:00
Michael Muré
65f48fb2c8 rename RawTracer's DroppedInSubscribe into UndeliverableMessage 2021-07-13 08:58:00 -07:00
Michael Muré
9be1c593c6 add a new RawTracer event to track messages dropped in Subscribe 2021-07-13 08:58:00 -07:00
Michael Muré
50b1cfadc8 expose more events for RawTracer 2021-07-13 08:58:00 -07:00
vyzo
e6eff445d4
Ignore transient connections (#412) 2021-04-01 21:45:09 +01:00
vyzo
5457a2845b expose internalTracer as RawTracer 2021-03-16 08:28:02 +02:00
vyzo
05c505ef60 export rejection named string constants 2021-03-16 08:28:02 +02: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