794 Commits

Author SHA1 Message Date
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
vyzo
ee0aef578c add p7 configuration to score parameters 2020-05-06 19:41:53 +03:00
Yusef Napora
94015cee77 factor out doSendRPC and doDropRPC methods 2020-05-06 19:01:22 +03:00
Yusef Napora
21a4f8c0c8 only call fragmentRPC if we're over the size limit 2020-05-06 19:01:22 +03:00
Yusef Napora
568fa5a244 close stream in test 2020-05-06 19:01:22 +03:00
Yusef Napora
cb02a50cd8 split large IWANT / IHAVE messages, add unit test 2020-05-06 19:01:22 +03:00
Yusef Napora
4427c3def7 fix prune message in test 2020-05-06 19:01:22 +03:00
Yusef Napora
b1de03b608 try to send control messages in one RPC when fragmenting 2020-05-06 19:01:22 +03:00
Yusef Napora
cb65238a39 fix race condition in rpc fragmentation test 2020-05-06 19:01:22 +03:00
Yusef Napora
8642662340 rewrite test for rpc fragmentation 2020-05-06 19:01:22 +03:00
Yusef Napora
27f009a9c7 fragment large RPCs in sendRPC 2020-05-06 19:01:22 +03:00
vyzo
5bbe37191a downgrade graylist Warn log to Info 2020-05-05 21:10:14 +03:00
vyzo
438dd9e27e downgrade tracer Error logs to Warn 2020-05-05 21:10:14 +03:00
vyzo
ce9a0b7edf use log.Warn instead of Warning 2020-05-05 21:10:14 +03:00
vyzo
ed0d01f92b add defensive checks for potentially duplicate traces 2020-05-04 19:06:40 +03:00
vyzo
8c96dc4bdb add some more validator tests 2020-05-04 09:42:20 +03:00
vyzo
63e7ba850c add comment about validationThrottled suerpseding ValidationIgnore 2020-05-04 09:42:20 +03:00
vyzo
deee35d9b8 fix apparent flakiness in test 2020-05-04 09:42:20 +03:00
vyzo
5a7a4fcf84 fix typo
Co-Authored-By: Yusef Napora <yusef@protocol.ai>
2020-05-04 09:42:20 +03:00
vyzo
213da1cf8c add test exercising score integration with extended validation 2020-05-04 09:42:20 +03:00
vyzo
1ff567c9d2 add test for multitopic validation with extended validation interface 2020-05-04 09:42:20 +03:00
vyzo
ae3a02f553 add test for rejections with ignore validator decision 2020-05-04 09:42:20 +03:00
vyzo
1901383099 implement extended validator support 2020-05-04 09:42:20 +03:00