14 Commits

Author SHA1 Message Date
vyzo
d6c20b59fc remove multi-topic message support 2020-10-08 20:18:21 +03:00
Raúl Kripalani
ae55bf9603 upgrade deps + interoperable uvarint delimited writer/reader. 2020-07-30 14:00:54 +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
883f8b8c92 update IHAVE spam test to test for behavioural tests because of broken promises 2020-05-08 16:45:31 +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
11ef2a9cf2 fix the global variable mutation races 2020-04-22 21:08:13 +03:00
vyzo
a50deb04c0 a little bit more time to avoid races with restoring mutated config variables 2020-04-22 21:08:13 +03:00
vyzo
6a230e711e add a heartbeat's worth of delay before restoring mutated globals
the race detector cries on travis
2020-04-22 21:08:13 +03:00
vyzo
7efd666dc4 increase wait time for IWANT spam test to 1s 2020-04-22 21:08:13 +03:00
vyzo
a645afd1b3 add backoff penalty for GRAFT floods 2020-04-20 19:53:12 +03:00
vyzo
8150843cf3 improve handling of IHAVE floods 2020-04-20 19:53:12 +03:00
vyzo
78bbe13b49 fix data races in spam tests 2020-04-20 19:53:12 +03:00
vyzo
9b28f21a6b rename gossipsub_attack_test to gossipsub_spam_test 2020-04-20 19:53:12 +03:00