Commit Graph

916 Commits

Author SHA1 Message Date
Yusef Napora 2f9a678f2e inline decayingDeliveryTag method into addDeliveryTag 2020-05-19 19:26:53 +03:00
Yusef Napora b20819d046 close decaying tags when leaving topic 2020-05-19 19:26:53 +03:00
Yusef Napora cd4f0a74a3 increase test timeout on travis 2020-05-19 19:26:53 +03:00
Yusef Napora a70cfa5e07 rm misleading comment 2020-05-19 19:26:53 +03:00
Yusef Napora 6a259a02fd sort imports 2020-05-19 19:26:53 +03:00
Yusef Napora b109c4ceee check reject reason before deleting near-first state 2020-05-19 19:26:53 +03:00
Yusef Napora 2e9c9f0b0a update dependencies and use preset decay fns 2020-05-19 19:26:53 +03:00
Yusef Napora 64e1b8b0d4 use map to track near-first deliveries in tagTracer 2020-05-19 19:26:53 +03:00
Yusef Napora cc0ba20627 free up drec.peers when we're done with it 2020-05-19 19:26:53 +03:00
Yusef Napora 9c730661bc add delivery tags for "near-first" msg deliveries 2020-05-19 19:26:53 +03:00
Yusef Napora 5be7bc254c bump blankhost to 0.1.6 2020-05-19 19:26:53 +03:00
Yusef Napora 8e4a9489c2 lock for reading in bumpDeliveryTag 2020-05-19 19:26:53 +03:00
Yusef Napora 2312cddaff add nil check for decayer 2020-05-19 19:26:53 +03:00
Yusef Napora 51369f756f increase decaying tag interval 2020-05-19 19:26:53 +03:00
Yusef Napora f87e7b72d7 test delivery tags vs sybil storm 2020-05-19 19:26:53 +03:00
Yusef Napora 699149a3c4 bump connmgr dep to latest PR commit 2020-05-19 19:26:53 +03:00
Yusef Napora f37c6b801c unit tests for tagTracer 2020-05-19 19:26:53 +03:00
Yusef Napora 28d17a4cab add tagTracer to apply connmgr tags 2020-05-19 19:26:53 +03:00
Yusef Napora 448287732d temporarily depend on PR commits 2020-05-19 19:26:53 +03:00
Yusef Napora 53c2eeaccf track discovery API change 2020-05-19 19:26:53 +03:00
dependabot-preview[bot] b2075efc96 Bump github.com/libp2p/go-libp2p-blankhost from 0.1.4 to 0.1.6
Bumps [github.com/libp2p/go-libp2p-blankhost](https://github.com/libp2p/go-libp2p-blankhost) from 0.1.4 to 0.1.6.
- [Release notes](https://github.com/libp2p/go-libp2p-blankhost/releases)
- [Commits](https://github.com/libp2p/go-libp2p-blankhost/compare/v0.1.4...v0.1.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 17:50:24 +03:00
dependabot-preview[bot] 1c99ae97a8 Bump github.com/libp2p/go-libp2p-core from 0.5.3 to 0.5.6
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core) from 0.5.3 to 0.5.6.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases)
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.5.3...v0.5.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 17:26:03 +03:00
dependabot-preview[bot] 933aeb40e5 Bump github.com/libp2p/go-libp2p-swarm from 0.2.3 to 0.2.4
Bumps [github.com/libp2p/go-libp2p-swarm](https://github.com/libp2p/go-libp2p-swarm) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/libp2p/go-libp2p-swarm/releases)
- [Commits](https://github.com/libp2p/go-libp2p-swarm/compare/v0.2.3...v0.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 17:00:50 +03:00
vyzo 31c9b219f4 use the proto we already have in AddPeer to determine whether the connection houses the stream 2020-05-18 23:20:38 +03:00
vyzo 4207beae0d only count an outbound connection if it has a pubsub stream 2020-05-18 23:20:38 +03:00
vyzo 09e6d9e1e3 cache scores throughout the heartbeat 2020-05-18 23:20:38 +03:00
vyzo 7890c5a458 maintain outboud peer quota 2020-05-18 23:20:38 +03:00
vyzo d74def1661 precompute outbound peers on AddPeer, add Dout 2020-05-18 23:20:38 +03:00
vyzo 7d320ac87a only allow GRAFT from outbound peers when we are at or over Dhi 2020-05-18 23:20:38 +03:00
vyzo 39fc35f7cb check if already in the mesh in handleGraft to support concurrent grafting 2020-05-18 23:20:38 +03:00
Edgar Aroutiounian eef4d41e0e [blacklist] Use .Has check before add in time cached version - adjust signature 2020-05-16 19:58:13 +03:00
Edgar Aroutiounian 9de0241df1 [validation] Use label for break 2020-05-13 09:58:12 +03:00
Edgar Aroutiounian 04e971fa0d [validation] break not used correct - need return or give label, i choose return 2020-05-13 09:58:12 +03:00
vyzo fedb87bd57 deflake TestGossipsubAttackSpamIHAVE
travis managed to take more than 3 seconds for one or two heartbeat sleeps; give it 10 seconds.
2020-05-08 21:20:04 +03:00
vyzo 2dc46af415 update tests for quadratic p4 2020-05-08 21:20:04 +03:00
vyzo 1c85190323 make p4 quadratic 2020-05-08 21:20:04 +03:00
vyzo 883f8b8c92 update IHAVE spam test to test for behavioural tests because of broken promises 2020-05-08 16:45:31 +03:00
vyzo 5f682c8ca5 add test for gossip_tracer 2020-05-08 16:45:31 +03:00
vyzo 41f0c2fa96 update godoc for P7 2020-05-08 16:45:31 +03:00
vyzo 375b9b51df gossip tracer implementation 2020-05-08 16:45:31 +03:00
vyzo 4394e52a6f gossip tracer preliminaries 2020-05-08 16:45:31 +03:00
vyzo d3ae6ab3a7 extended internal tracing for multiple objects, not just score 2020-05-08 16:45:31 +03:00
vyzo 076c6c1ab5 try to deflake MeshFailure test; travis managed to fail on this
apparently creating the score object and calling refreshScores can take 500ms on travis!
2020-05-07 01:45:04 +03:00
vyzo 53c2662613 godoc 2020-05-07 01:45:04 +03:00
vyzo 5363d59203 better backoff handling
- Specify backoff in PRUNE message
- Obey peer backoff if specified
- Remove BackoffPenalty, handle lack of respect for backoff through P7
2020-05-07 01:45:04 +03:00
vyzo dd069798bb add backoff to PRUNE messages 2020-05-07 01:45:04 +03:00
vyzo 0832791d9c extend behaviour penalty test to ensure coverage 2020-05-06 19:41:53 +03:00
vyzo 6323982964 fix test for behaviour penalty validation 2020-05-06 19:41:53 +03:00
vyzo 972505c7b8 fix typo 2020-05-06 19:41:53 +03:00
vyzo 3cc169362f incorporate p7 into score 2020-05-06 19:41:53 +03:00