928 Commits

Author SHA1 Message Date
Richard Ramos
91851dda63
refactor: removing event emitter 2021-10-06 11:19:08 -04:00
Richard Ramos
adc6883028
fix: add protocol to matcher function 2021-07-29 12:28:17 -04:00
Richard Ramos
184b435d0b
fix: opts 2021-07-29 10:34:34 -04:00
RichΛrd
e321eb74e8
feat: add constructor that supports a protocol matcher function (#4)
* feat: add constructor that supports a protocol matcher function
* add matcher function to wakurelaysub
* fix: call correct function to use match func
2021-07-29 09:36:37 -04:00
Richard Ramos
9afd35dadd
update protocol id 2021-07-11 14:05:56 -04:00
Vitaliy Vlasov
e9c89c8f00 Add EvtPeerConnectednessChanged 2021-06-29 11:53:38 +03:00
Richard Ramos
27056d061f
Adding WakuRelay default options v0.4.2 2021-03-24 10:41:34 -04:00
Richard Ramos
aca80972b6
Change mod name and remove unused parameter 2021-03-24 09:49:43 -04:00
Richard Ramos
874e7c124d
Rename gossipsub to wakurelaysub 2021-03-24 09:42:37 -04:00
RichΛrd
7213a9e9c6
Merge pull request #1 from status-im/additional-protocols
fix: allow specifying custom protocols in GossipSub
v0.4.1-customProtocols
2021-03-15 16:12:44 -04:00
Richard Ramos
be77c152f7
fix: allow specifying custom protocols in GossipSub 2021-03-15 16:09:07 -04:00
vyzo
6c1addf493 more intelligent handling of ip whitelist check 2021-02-12 21:47:58 +02:00
vyzo
69868db8cf remove obsolete explicit IP whitelisting in favor of subnets 2021-02-12 21:47:58 +02:00
vyzo
84f577bdd1 add subnet whitelisting for IPColocation 2021-02-12 21:47:58 +02:00
vyzo
9e129db766 defer stream removal instead of doing it inline. v0.4.1 2021-01-12 17:18:00 +02:00
vyzo
b080f595bb add test for inbound stream deduplication 2021-01-12 17:18:00 +02:00
vyzo
8676a0e25b deduplicate inbound streams 2021-01-12 17:18:00 +02:00
vyzo
352c6b993e populate receivedFrom field in delivery trace 2020-12-16 20:17:23 +02:00
vyzo
4f972a14dd add receivedFrom field in delivery trace 2020-12-16 20:17:23 +02:00
Steven Allen
98f8611700
fix: reduce log spam (#394)
This message will be received on reconnect and/or when we receive multiple
connections. It apparently shows up in logs quite frequently.
2020-12-10 10:19:39 -08:00
Adin Schmahmann
aa4f9dac2f fix: treat peers already connected to the host before pubsub is initialized as valid potential pubsub peers 2020-12-07 10:27:35 +02:00
Adin Schmahmann
4336d5ae71 test: add test for if nodes are connected before pubsub is started 2020-12-07 10:27:35 +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.
v0.4.0
2020-11-12 09:02:55 +02:00
incognitomode
68264088b7
Add go-libp2p example in README.md (#392) 2020-10-26 13:13:21 -07:00
vyzo
89f61abf29 subscription filters v0.3.6 2020-10-08 21:14:14 +03:00
vyzo
d6c20b59fc remove multi-topic message support 2020-10-08 20:18:21 +03:00
nisdas
f7f33e10cc satisfy race detector 2020-09-10 12:39:04 +03:00
nisdas
b0d384d2e8 clean up 2020-09-10 12:39:04 +03:00
nisdas
309d45acef copy string topic 2020-09-10 12:39:04 +03:00
vyzo
ffa2e3e055 add test for score adjustment from topis params reset 2020-09-09 16:57:36 +03:00
vyzo
c82d664e8f prettify things 2020-09-09 16:57:36 +03:00
vyzo
73880606b5 add test for topic score parameter reset method 2020-09-09 16:57:36 +03:00
vyzo
26bb27357b add test for topic score parameter reset 2020-09-09 16:57:36 +03:00
vyzo
5d06aa2d4f add api for dynamically setting and resetting topic score parameters 2020-09-09 16:57:36 +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
14d1a35e0c more docs 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
f595227544 disable codecov annotations, makes things unreadable 2020-09-07 13:38:02 +03:00
vyzo
45e1233b05 further tweak gate threshold weights 2020-09-07 13:38:02 +03:00
vyzo
8408e700e2 fix test races 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
7912408642 fix non-determinism in test 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