Commit Graph

  • eccded1360 add test for gossipsub enough peers vyzo 2020-04-22 13:34:42 +03:00
  • 8cffbc4bd6 add test for gossipsub flood publishing vyzo 2020-04-22 13:22:23 +03:00
  • c00b476fb4 add test for gossipsub direct peers vyzo 2020-04-22 13:17:09 +03:00
  • f90e3da809
    docs: one more badger David Dias 2020-04-22 17:58:45 +01:00
  • cf92b1bf2d
    docs: fix badgers David Dias 2020-04-22 10:33:02 +01:00
  • 9dfdd0bdf9 close the remote tracer in test vyzo 2020-04-21 21:02:21 +03:00
  • a613f097ed fix close race in basicTracer vyzo 2020-04-21 21:02:12 +03:00
  • faf920414d add test for tracers vyzo 2020-04-21 19:43:22 +03:00
  • 8cf53daab6 add test for peer score parameter validation vyzo 2020-04-21 12:20:03 +03:00
  • 7fadc8e976 update go-libp2p-discovery, go mod tidy vyzo 2020-04-21 11:33:47 +03:00
  • 7903222907 move validation tests to their own file vyzo 2020-04-21 09:49:07 +03:00
  • 7c8e7857fa deflake TestValidatorOverload vyzo 2020-04-21 09:45:52 +03:00
  • b35fdc996a Bump github.com/ipfs/go-log from 1.0.2 to 1.0.3 dependabot-preview[bot] 2020-04-18 08:12:18 +00:00
  • 53c709a6ca Bump github.com/libp2p/go-libp2p-core from 0.5.0 to 0.5.1 dependabot-preview[bot] 2020-04-18 08:12:19 +00:00
  • 428f80c21c Bump github.com/libp2p/go-libp2p-swarm from 0.2.2 to 0.2.3 dependabot-preview[bot] 2020-04-18 08:12:27 +00:00
  • 235c28ff49 truncate per peer message id lists vyzo 2020-04-20 16:50:02 +03:00
  • 8bc2c5c0f1 log counts in IHAVE flood protection measures vyzo 2020-04-20 16:43:33 +03:00
  • a645afd1b3 add backoff penalty for GRAFT floods vyzo 2020-04-20 16:03:44 +03:00
  • 9ab44c5069 make maximum number of IHAVE messages accepted per heartbeat configurable vyzo 2020-04-20 15:13:15 +03:00
  • 8150843cf3 improve handling of IHAVE floods vyzo 2020-04-20 15:02:58 +03:00
  • 78bbe13b49 fix data races in spam tests vyzo 2020-04-20 13:03:17 +03:00
  • 9b28f21a6b rename gossipsub_attack_test to gossipsub_spam_test vyzo 2020-04-20 12:48:20 +03:00
  • 2b1a63d040 fix GRAFT spam test vyzo 2020-04-20 12:46:20 +03:00
  • 376b7fa5a0 fix IHAVE spam test vyzo 2020-04-20 12:35:07 +03:00
  • 831e7bcbd8 Add IHAVE spam test Dirk McCormick 2020-04-15 11:21:23 -04:00
  • 45fcb28be8 test: add test for invalid message spam Dirk McCormick 2020-04-14 19:07:22 -04:00
  • 4e15efdd6f test: GRAFT spam and GRAFT backoff tests Dirk McCormick 2020-04-14 15:55:58 -04:00
  • a5addee5a0 test: add IWANT spam test Dirk McCormick 2020-04-13 18:53:52 -04:00
  • 34f2295c19 add protections from IHAVE floods vyzo 2020-04-20 12:15:59 +03:00
  • 1645516276 add protections from GRAFT floods vyzo 2020-04-20 10:26:32 +03:00
  • ea5d2e6d6d gomod tidy vyzo 2020-04-18 10:51:41 +03:00
  • 1e920ed426 fix IPv4 -vs- IPv6 address handling in peer address tracking vyzo 2020-04-14 19:11:12 +03:00
  • 432caf4fdf more rigorously defeat unspecified address gremlins vyzo 2020-04-14 14:56:56 +03:00
  • 0a9a87cf04 fix issue with unspecific IPv6 addrs in conn IP tracking vyzo 2020-04-14 12:42:43 +03:00
  • 3016a1c9a9 gomod: update go-multiaddr-net vyzo 2020-04-14 12:01:58 +03:00
  • e1d6b49b2d fix bug in peerScore.setIPs vyzo 2020-04-14 10:16:40 +03:00
  • 3368bed1d4 disable flaky and irrelevant tests vyzo 2020-04-11 16:11:58 +03:00
  • 9904d69cde configurable number of peers for opportunistic grafting vyzo 2020-04-10 22:37:07 +03:00
  • 6732f9848b fix typo vyzo 2020-04-10 20:23:45 +03:00
  • 8a53469c43 fix typo vyzo 2020-04-10 20:23:31 +03:00
  • 2fdf6cdaed opportunistic grafting vyzo 2020-04-10 14:21:10 +03:00
  • 8e969ba29e use a configurable variable for direct peer reconnect ticks vyzo 2020-04-10 13:54:14 +03:00
  • f97d151aec eagerly send gossip at the end heartbeat vyzo 2020-04-03 22:46:14 +03:00
  • fc38f556a3 comments and nits. Raúl Kripalani 2020-04-01 23:20:53 +01:00
  • 8809484a47 support direct peering agreements vyzo 2020-03-31 13:23:04 +03:00
  • bcff5f20a6 update REAMDE vyzo 2020-03-31 12:40:51 +03:00
  • 8f3471cdfd correctly attribute invalid message deliveries due to self origin rejection vyzo 2020-03-28 12:52:20 +02:00
  • 97519bf76c better handling of message originating from self but forwarded by another peer vyzo 2020-03-28 12:22:57 +02:00
  • ce3da3facd move self-publish check to pubsub vyzo 2020-03-27 20:56:03 +02:00
  • a1488680e7 rename delivery_ constants to satisfy the camelcase worshipers and nitpickers vyzo 2020-03-27 20:34:00 +02:00
  • 1c4f0920fe use named constants for tracing message rejection reasons vyzo 2020-03-27 20:31:31 +02:00
  • ea7305245d add IP whitelist for colocation factor penalty vyzo 2020-03-27 20:21:42 +02:00
  • 68b86a4b66 use manet.ToIP instead of hand-rolling multiaddr to IP conversion vyzo 2020-03-27 20:18:38 +02:00
  • 95094393a8 gomod: use go-multiaddr-net v0.1.3 vyzo 2020-03-27 20:17:58 +02:00
  • ea314605d3 don't forward messages with source ourselves but not published by ourselves vyzo 2020-03-27 19:52:08 +02:00
  • 0cab7f5e59 increase connection manager weight for mesh peers vyzo 2020-03-27 17:56:10 +02:00
  • 7a3848073e only retain negative scores vyzo 2020-03-27 17:54:59 +02:00
  • c65a520799 topic score cap vyzo 2020-03-27 16:46:41 +02:00
  • 65cff1b421 godoc nits for parameter weights. vyzo 2020-03-27 14:19:03 +02:00
  • bb279e3126 wrap topic param validation error vyzo 2020-03-27 14:15:26 +02:00
  • 1b387b0068 rename score debug option, address some comments around inspection vyzo 2020-03-27 14:10:12 +02:00
  • adad40c764 reraise GossipSubPrunePeers to 16 vyzo 2020-03-27 11:52:36 +02:00
  • 71ab9c1d73 use a struct for aggregating score thresholds vyzo 2020-03-27 11:38:48 +02:00
  • f6f34cfc99 make PX optional and disabled by default, gate by acceptPXThreshold vyzo 2020-03-27 11:24:51 +02:00
  • 375b66b0c1 move score parameter types to their own file vyzo 2020-03-27 11:10:47 +02:00
  • 9fc2fb1de1 gomod tidy vyzo 2020-03-24 16:06:28 +02:00
  • 8a5114c127 fix rebase artifacts vyzo 2020-03-24 16:06:20 +02:00
  • 90e6984148 track heartbeat ticks, only clear backoff every 15. vyzo 2020-03-23 09:49:11 +02:00
  • f70dcbe77c check exact expiration date of backoff when pruning because of backoff vyzo 2020-03-23 09:34:28 +02:00
  • 6bcaacd74b add backoff when pruning because of negative score vyzo 2020-03-23 08:29:46 +02:00
  • 15d204cc14 refresh backoff when pruning during the backoff period vyzo 2020-03-23 00:01:35 +02:00
  • d0979258f7 shuffle IWANT list vyzo 2020-03-22 20:52:19 +02:00
  • 588f7b85c0 add option to periodically inspect peer scores for debugging purposes vyzo 2020-03-17 14:14:56 +02:00
  • 244a39f419 validate the threshold values vyzo 2020-03-16 21:32:32 +02:00
  • d5e432a62b move score starting nil check inside the score implementation vyzo 2020-03-16 21:27:52 +02:00
  • ff89a0e619 short-circuit score computation in peer selection filters vyzo 2020-03-16 21:24:17 +02:00
  • 98671566a2 distinguish throttled validation because of a full worker queue. vyzo 2020-03-16 18:24:37 +02:00
  • 06d72b93da fix bug in WithEventTracer vyzo 2020-03-11 02:44:57 +02:00
  • 39e65e8729 peer score parameter validation vyzo 2020-03-09 14:08:42 +02:00
  • 4175342bc8 implement periodic maintenance vyzo 2020-03-09 13:37:23 +02:00
  • f550385493 implement getIPs and refreshIPs vyzo 2020-03-09 13:22:57 +02:00
  • 38fbc7fa47 implement message delivery struct details vyzo 2020-03-09 13:07:37 +02:00
  • 7d862e2ee6 double check delivery to aboid duplicate counts vyzo 2020-03-09 11:16:50 +02:00
  • 48b7d01113 finetune sticky mesh failure penalty parameter vyzo 2020-03-09 01:17:11 +02:00
  • f40b06e515 sticky mesh failure penalty parameter vyzo 2020-03-09 00:08:38 +02:00
  • b7a49b2708 clean up the logic of mesh delivery window vyzo 2020-03-08 22:44:45 +02:00
  • 5fa0f9ed6a more logical code ordering vyzo 2020-03-08 22:11:26 +02:00
  • ca6778bc83 simplify duplicate mesh delivery tracking vyzo 2020-03-08 22:08:53 +02:00
  • 9c0b96f4e7 comment cosmetics vyzo 2020-03-08 21:56:56 +02:00
  • e17e266aa9 track message delivery time within the validation pipeline vyzo 2020-03-08 21:43:28 +02:00
  • 3610b05538 peer tracking vyzo 2020-03-08 20:59:49 +02:00
  • 283593fbc0 mesh tracking vyzo 2020-03-08 20:21:16 +02:00
  • 535c04481e minimize hash table accesses vyzo 2020-03-08 17:22:16 +02:00
  • 16eeacd798 message delivery tracking vyzo 2020-03-08 16:48:45 +02:00
  • dd3ce7760c respect the time in mesh cap vyzo 2020-03-08 10:49:19 +02:00
  • 8c0deb877d respec decay to zero parameter in counter decay vyzo 2020-03-08 10:12:15 +02:00
  • b1aff8d752 add nil check in Score function vyzo 2020-03-08 01:54:40 +02:00
  • 398fb82e5f fix peer IP tracking structure vyzo 2020-03-07 21:11:45 +02:00
  • 20e3cf02b1 peer score refresh: counter decay and mesh activation vyzo 2020-03-07 21:09:50 +02:00
  • 38883df429 peer score calculation vyzo 2020-03-07 19:43:01 +02:00