879 Commits

Author SHA1 Message Date
vyzo
ff1b1a9772 also account for duplicates in gating decisions 2020-09-07 13:38:02 +03:00
vyzo
ec44a63c9f test throttle code path in gossip tracer 2020-09-07 13:38:02 +03:00
vyzo
811ca922d4 add test for peer gater 2020-09-07 13:38:02 +03:00
vyzo
f7f6f59758 more efficient promise processing on throttling 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
854ca9a6ad better log messages around gating 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
vyzo
3b92bdc1e9 rich router acceptance semantics
Allows us to ignore payload messages when the validation queue is under strain
2020-09-07 13:38:02 +03:00
vyzo
06a12f17b7 reduce log verbosity; debug mostly 2020-09-01 20:42:50 +03:00
Steven Allen
f125ed69b3
regenerate protobufs (#381) v0.3.5 2020-08-25 15:33:38 -07:00
vyzo
efd56962bc track validation time 2020-08-21 10:51:13 +03:00
vyzo
42cb3f984c fullfill promise as soon as a message begins validation 2020-08-21 10:51:13 +03:00
vyzo
bfc96c2cd0 don't apply penalty in self origin rejections 2020-08-20 22:43:35 +03:00
vyzo
b7c28b504d add behaviour penalty threshold 2020-08-20 18:03:32 +03:00
Louis Thibault
c5ece1d0c7 Add String() method to Topic. 2020-08-11 14:25:09 +03:00
vyzo
769831b478 add regression test for issue 371 v0.3.4 2020-08-10 21:00:00 +03:00
vyzo
3a81c24073 don't add direct peers to fanout 2020-08-10 21:00:00 +03:00
Raúl Kripalani
a86ae585a6 reference spec change in comment. 2020-08-10 15:18:25 +03:00
vyzo
46536eccc4 fix backoff slack time 2020-08-10 15:18:25 +03:00
vyzo
8c08ebaecb use the heartbeat interval for slack time 2020-08-10 15:18:25 +03:00
vyzo
f2c25c2228 add slack time to prune backoff clearance 2020-08-10 15:18:25 +03:00
Steven Allen
df9592859d
fix: call the correct tracer function in FloodSubRouter.Leave (#373)
fixes #372
2020-08-10 01:31:21 -07:00
vyzo
2b5243c72f downgrade trace buffer overflow log to debug 2020-07-31 19:15:31 +03:00
vyzo
5a3055d33a track topics in Reject/Duplicate/Deliver events 2020-07-31 19:15:31 +03:00
vyzo
fa4d16e08a add topics to Reject/Duplicate/Deliver events 2020-07-31 19:15:31 +03:00
vyzo
15f4f1f138 fix flaky test
10ms is _not_ sufficient for travis
v0.3.3
2020-07-30 14:27:04 +03:00
vyzo
5fd694af20 refactor ip colocation factor computation that is common for score and inspection 2020-07-30 14:27:04 +03:00
vyzo
f160b11084 better handling of intermediate topic score snapshots 2020-07-30 14:27:04 +03:00
vyzo
0f6aeb23d7 disallow duplicate score inspectors 2020-07-30 14:27:04 +03:00
vyzo
e6559f59c0 make peer score inspect function types aliases 2020-07-30 14:27:04 +03:00
vyzo
cce1f8a107 extended peer score inspection 2020-07-30 14:27:04 +03:00
Raúl Kripalani
ae55bf9603 upgrade deps + interoperable uvarint delimited writer/reader. 2020-07-30 14:00:54 +03:00
Rüdiger Klaehn
4ccb63821e Add warning about messageIDs
See https://github.com/libp2p/specs/pull/285 and https://github.com/libp2p/go-libp2p-pubsub/issues/361
2020-07-27 16:29:58 +02:00
Diederik Loerakker
99507107b6
Merge pull request #359 from protolambda/optional-sig-origin-seq
Signing policy + optional Signature, From and Seqno
2020-07-23 08:47:47 +03:00
Preston Van Loon
aabbdb1143 Update pubsub.go 2020-07-14 08:07:25 +03:00
Preston Van Loon
54f20b5a2a Define a public error ErrSubscriptionCancelled. 2020-07-14 08:07:25 +03:00
vyzo
8945f91465 only do PX on leave if PX was enabled in the node 2020-06-15 10:30:58 +03:00
Jeromy
e18b4edd9a drop warning about failure to open stream to a debug log 2020-06-12 23:47:16 +03:00
vyzo
9a5528b3ec reinstate tagging (now protection) tests v0.3.2 2020-06-03 23:30:48 +03:00
vyzo
44d9cb8639 gomod: update (indirect) go-eventbus for go-libp2p-core v0.5.7 2020-06-03 23:30:48 +03:00
vyzo
e700e9a446 gomod: update go-libp2p-core and go-libp2p-connmgr 2020-06-03 23:30:48 +03:00
vyzo
f465fc0e41 disable tests for direct/mesh tags, we don't have an interface to query the connman yet
I hate disabling tests, so this should be very temporary.
2020-06-03 23:30:48 +03:00
vyzo
df04b05234 protect direct and mesh peers in the connection manager 2020-06-03 23:30:48 +03:00
Alan Shaw
c0712c6e92 feat: add direct connect ticks option
In [drand](https://github.com/drand/drand) we have a gossipsub relay to allow users to subscribe to getting random values over pubsub. We want to support pure gossip relays who relay from a relay. For this we need direct peering agreements and want to mitigate the possibility of "missing" randomness messages by ensuring the direct connect ticks period is less than the period between updates.

This PR simply adds a new functional option allowing us to set the direct connect ticks value without modifying the global variable.
2020-05-27 16:26:41 +03:00
vyzo
9a1171a0ef fix outbound constraint satisfaction in oversubscription pruning v0.3.1 2020-05-26 20:41:53 +03:00
Yusef Napora
bac68a1ba3 add doc comment for GossipSubDout v0.3.0 2020-05-20 18:48:28 +03:00
Yusef Napora
dc6eaa7a5d fix typo 2020-05-20 18:48:28 +03:00
Yusef Napora
c041642546 add note about opp. graft threshold 2020-05-20 18:48:28 +03:00
Yusef Napora
22403baadd stop using term "gossip mesh" 2020-05-20 18:48:28 +03:00