Commit Graph

  • 6dbdaed793 count all rejections by default vyzo 2020-09-03 09:10:13 +03:00
  • 7912408642 fix non-determinism in test vyzo 2020-09-03 01:33:03 +03:00
  • 955344bf9b tweak probability threshold vyzo 2020-09-03 00:40:46 +03:00
  • ff1b1a9772 also account for duplicates in gating decisions vyzo 2020-09-02 23:31:42 +03:00
  • ec44a63c9f test throttle code path in gossip tracer vyzo 2020-09-02 22:11:42 +03:00
  • 811ca922d4 add test for peer gater vyzo 2020-09-02 22:09:37 +03:00
  • f7f6f59758 more efficient promise processing on throttling vyzo 2020-09-02 21:51:56 +03:00
  • 93f4f91dcf trace throttle peers to avoid breaking promises unfairly vyzo 2020-09-02 21:32:10 +03:00
  • 854ca9a6ad better log messages around gating vyzo 2020-09-02 20:44:00 +03:00
  • 45272722d2 implement peer gater vyzo 2020-09-02 20:43:37 +03:00
  • 2bc51e0cf2 peer gater scaffolding vyzo 2020-09-02 17:39:25 +03:00
  • 3b92bdc1e9 rich router acceptance semantics vyzo 2020-09-02 17:14:09 +03:00
  • 06a12f17b7 reduce log verbosity; debug mostly vyzo 2020-09-01 20:22:30 +03:00
  • f125ed69b3
    regenerate protobufs (#381) Steven Allen 2020-08-25 15:33:38 -07:00
  • efd56962bc track validation time vyzo 2020-08-21 10:25:21 +03:00
  • 42cb3f984c fullfill promise as soon as a message begins validation vyzo 2020-08-21 10:19:14 +03:00
  • bfc96c2cd0 don't apply penalty in self origin rejections vyzo 2020-08-20 22:21:16 +03:00
  • b7c28b504d add behaviour penalty threshold vyzo 2020-08-20 17:40:36 +03:00
  • c5ece1d0c7 Add String() method to Topic. Louis Thibault 2020-08-03 13:35:12 +02:00
  • 769831b478 add regression test for issue 371 vyzo 2020-08-10 19:55:36 +03:00
  • 3a81c24073 don't add direct peers to fanout vyzo 2020-08-10 13:49:50 +03:00
  • a86ae585a6 reference spec change in comment. Raúl Kripalani 2020-08-10 12:37:42 +01:00
  • 46536eccc4 fix backoff slack time vyzo 2020-08-10 14:26:15 +03:00
  • 8c08ebaecb use the heartbeat interval for slack time vyzo 2020-08-10 14:16:23 +03:00
  • f2c25c2228 add slack time to prune backoff clearance vyzo 2020-08-10 13:42:22 +03:00
  • df9592859d
    fix: call the correct tracer function in FloodSubRouter.Leave (#373) Steven Allen 2020-08-10 01:31:21 -07:00
  • 2b5243c72f downgrade trace buffer overflow log to debug vyzo 2020-07-31 12:54:18 +03:00
  • 5a3055d33a track topics in Reject/Duplicate/Deliver events vyzo 2020-07-31 10:01:32 +03:00
  • fa4d16e08a add topics to Reject/Duplicate/Deliver events vyzo 2020-07-31 09:59:16 +03:00
  • 15f4f1f138 fix flaky test vyzo 2020-07-30 14:01:39 +03:00
  • 5fd694af20 refactor ip colocation factor computation that is common for score and inspection vyzo 2020-07-29 20:18:55 +03:00
  • f160b11084 better handling of intermediate topic score snapshots vyzo 2020-07-29 20:10:51 +03:00
  • 0f6aeb23d7 disallow duplicate score inspectors vyzo 2020-07-29 20:09:06 +03:00
  • e6559f59c0 make peer score inspect function types aliases vyzo 2020-07-29 20:04:52 +03:00
  • cce1f8a107 extended peer score inspection vyzo 2020-07-22 21:26:44 +03:00
  • ae55bf9603 upgrade deps + interoperable uvarint delimited writer/reader. Raúl Kripalani 2020-07-29 22:01:12 +01:00
  • 4ccb63821e Add warning about messageIDs Rüdiger Klaehn 2020-07-24 22:44:32 +02:00
  • 99507107b6
    Merge pull request #359 from protolambda/optional-sig-origin-seq Diederik Loerakker 2020-07-23 07:47:47 +02:00
  • aabbdb1143 Update pubsub.go Preston Van Loon 2020-07-13 13:12:27 -07:00
  • 54f20b5a2a Define a public error ErrSubscriptionCancelled. Preston Van Loon 2020-07-06 10:58:44 -07:00
  • 8945f91465 only do PX on leave if PX was enabled in the node vyzo 2020-06-15 09:47:50 +03:00
  • e18b4edd9a drop warning about failure to open stream to a debug log Jeromy 2020-06-12 13:08:54 -07:00
  • 9a5528b3ec reinstate tagging (now protection) tests vyzo 2020-06-03 22:39:11 +03:00
  • 44d9cb8639 gomod: update (indirect) go-eventbus for go-libp2p-core v0.5.7 vyzo 2020-06-03 22:38:52 +03:00
  • e700e9a446 gomod: update go-libp2p-core and go-libp2p-connmgr vyzo 2020-06-03 22:17:27 +03:00
  • f465fc0e41 disable tests for direct/mesh tags, we don't have an interface to query the connman yet vyzo 2020-06-03 21:46:13 +03:00
  • df04b05234 protect direct and mesh peers in the connection manager vyzo 2020-06-03 21:45:17 +03:00
  • c0712c6e92 feat: add direct connect ticks option Alan Shaw 2020-05-27 09:51:48 +01:00
  • 9a1171a0ef fix outbound constraint satisfaction in oversubscription pruning vyzo 2020-05-25 10:39:29 +03:00
  • bac68a1ba3 add doc comment for GossipSubDout Yusef Napora 2020-05-19 11:37:29 -04:00
  • dc6eaa7a5d fix typo Yusef Napora 2020-05-08 10:12:52 -04:00
  • c041642546 add note about opp. graft threshold Yusef Napora 2020-05-08 10:12:20 -04:00
  • 22403baadd stop using term "gossip mesh" Yusef Napora 2020-05-08 09:41:36 -04:00
  • 3dab80fdd5 add doc comments to gossipsub constants Yusef Napora 2020-05-07 21:11:36 -04:00
  • 906c941b29 sleep longer for travis Yusef Napora 2020-05-19 11:56:13 -04:00
  • ef50cbbdd7 sleep in test after bumping fake clock Yusef Napora 2020-05-19 11:28:03 -04:00
  • 60046386b6 update deps, go mod tidy Yusef Napora 2020-05-19 10:56:55 -04:00
  • 554655c59c revert travis timeout change Yusef Napora 2020-05-19 10:46:06 -04:00
  • d4b7c255c6 rm empty slice alloc Yusef Napora 2020-05-19 10:45:31 -04:00
  • d57a6c23da better range check for expected value in test Yusef Napora 2020-05-19 10:44:46 -04:00
  • 767692b3f6 loosen test expectations to appease travis Yusef Napora 2020-05-19 10:36:32 -04:00
  • cddb5c83a4 this is getting a bit silly Yusef Napora 2020-05-18 22:56:24 -04:00
  • f0bb2c8ae5 play with test timing on travis Yusef Napora 2020-05-18 21:00:21 -04:00
  • 8bb5ed7e20 add delay in TestTagTracerDeliveryTags Yusef Napora 2020-05-18 19:46:40 -04:00
  • a3c7ae761f even fewer peers in connmgr test Yusef Napora 2020-05-18 19:13:13 -04:00
  • 2f4028acb2 use fewer peers in connmgr test Yusef Napora 2020-05-15 15:53:51 -04:00
  • 2f9a678f2e inline decayingDeliveryTag method into addDeliveryTag Yusef Napora 2020-05-15 13:46:21 -04:00
  • b20819d046 close decaying tags when leaving topic Yusef Napora 2020-05-15 13:36:12 -04:00
  • cd4f0a74a3 increase test timeout on travis Yusef Napora 2020-05-15 13:28:12 -04:00
  • a70cfa5e07 rm misleading comment Yusef Napora 2020-05-14 14:13:08 -04:00
  • 6a259a02fd sort imports Yusef Napora 2020-05-14 14:08:01 -04:00
  • b109c4ceee check reject reason before deleting near-first state Yusef Napora 2020-05-14 13:35:12 -04:00
  • 2e9c9f0b0a update dependencies and use preset decay fns Yusef Napora 2020-05-19 10:52:57 -04:00
  • 64e1b8b0d4 use map to track near-first deliveries in tagTracer Yusef Napora 2020-05-13 18:41:23 -04:00
  • cc0ba20627 free up drec.peers when we're done with it Yusef Napora 2020-05-11 13:36:35 -04:00
  • 9c730661bc add delivery tags for "near-first" msg deliveries Yusef Napora 2020-05-11 12:45:03 -04:00
  • 5be7bc254c bump blankhost to 0.1.6 Yusef Napora 2020-05-19 10:52:35 -04:00
  • 8e4a9489c2 lock for reading in bumpDeliveryTag Yusef Napora 2020-05-11 11:14:23 -04:00
  • 2312cddaff add nil check for decayer Yusef Napora 2020-05-11 11:13:06 -04:00
  • 51369f756f increase decaying tag interval Yusef Napora 2020-05-11 11:08:24 -04:00
  • f87e7b72d7 test delivery tags vs sybil storm Yusef Napora 2020-05-08 21:34:34 -04:00
  • 699149a3c4 bump connmgr dep to latest PR commit Yusef Napora 2020-05-19 10:52:04 -04:00
  • f37c6b801c unit tests for tagTracer Yusef Napora 2020-05-19 10:55:55 -04:00
  • 28d17a4cab add tagTracer to apply connmgr tags Yusef Napora 2020-05-19 10:50:45 -04:00
  • 448287732d temporarily depend on PR commits Yusef Napora 2020-05-19 10:55:31 -04:00
  • 53c2eeaccf track discovery API change Yusef Napora 2020-05-07 12:19:58 -04:00
  • b2075efc96 Bump github.com/libp2p/go-libp2p-blankhost from 0.1.4 to 0.1.6 dependabot-preview[bot] 2020-05-19 14:29:25 +00:00
  • 1c99ae97a8 Bump github.com/libp2p/go-libp2p-core from 0.5.3 to 0.5.6 dependabot-preview[bot] 2020-05-19 14:04:31 +00:00
  • 933aeb40e5 Bump github.com/libp2p/go-libp2p-swarm from 0.2.3 to 0.2.4 dependabot-preview[bot] 2020-05-19 13:39:41 +00:00
  • 31c9b219f4 use the proto we already have in AddPeer to determine whether the connection houses the stream vyzo 2020-05-18 19:22:57 +03:00
  • 4207beae0d only count an outbound connection if it has a pubsub stream vyzo 2020-05-18 18:38:45 +03:00
  • 09e6d9e1e3 cache scores throughout the heartbeat vyzo 2020-05-16 14:21:58 +03:00
  • 7890c5a458 maintain outboud peer quota vyzo 2020-05-16 14:14:40 +03:00
  • d74def1661 precompute outbound peers on AddPeer, add Dout vyzo 2020-05-16 13:47:45 +03:00
  • 7d320ac87a only allow GRAFT from outbound peers when we are at or over Dhi vyzo 2020-05-16 13:05:26 +03:00
  • 39fc35f7cb check if already in the mesh in handleGraft to support concurrent grafting vyzo 2020-05-16 12:57:44 +03:00
  • eef4d41e0e [blacklist] Use .Has check before add in time cached version - adjust signature Edgar Aroutiounian 2020-05-16 07:14:13 -07:00
  • 9de0241df1 [validation] Use label for break Edgar Aroutiounian 2020-05-12 23:34:24 -07:00
  • 04e971fa0d [validation] break not used correct - need return or give label, i choose return Edgar Aroutiounian 2020-05-12 17:28:55 -07:00
  • fedb87bd57 deflake TestGossipsubAttackSpamIHAVE vyzo 2020-05-08 20:12:34 +03:00