902 Commits

Author SHA1 Message Date
nisdas
f7f33e10cc satisfy race detector 2020-09-10 12:39:04 +03:00
nisdas
b0d384d2e8 clean up 2020-09-10 12:39:04 +03:00
nisdas
309d45acef copy string topic 2020-09-10 12:39:04 +03:00
vyzo
ffa2e3e055 add test for score adjustment from topis params reset 2020-09-09 16:57:36 +03:00
vyzo
c82d664e8f prettify things 2020-09-09 16:57:36 +03:00
vyzo
73880606b5 add test for topic score parameter reset method 2020-09-09 16:57:36 +03:00
vyzo
26bb27357b add test for topic score parameter reset 2020-09-09 16:57:36 +03:00
vyzo
5d06aa2d4f add api for dynamically setting and resetting topic score parameters 2020-09-09 16:57:36 +03:00
vyzo
a3445b756f add support for priority topic delivery weights 2020-09-07 13:38:02 +03:00
vyzo
40762e1362 tweak duplicate/reject weights 2020-09-07 13:38:02 +03:00
vyzo
2ed9fd55ff decay global counters after 2 min
we want rapid reaction to spam attacks
2020-09-07 13:38:02 +03:00
vyzo
8191980fc8 decouple global coutner decay from source counter decay
So that we can have fast reaction, while retaining source counters for longer.
2020-09-07 13:38:02 +03:00
vyzo
1d21536720 add warning for failure to parse IP out of remote multiaddr 2020-09-07 13:38:02 +03:00
vyzo
14d1a35e0c more docs 2020-09-07 13:38:02 +03:00
vyzo
c242b2e7be configure the peer gater using a parameter object, docs and stuff 2020-09-07 13:38:02 +03:00
vyzo
f595227544 disable codecov annotations, makes things unreadable 2020-09-07 13:38:02 +03:00
vyzo
45e1233b05 further tweak gate threshold weights 2020-09-07 13:38:02 +03:00
vyzo
8408e700e2 fix test races 2020-09-07 13:38:02 +03:00
vyzo
be1b155d45 use IPs for peer gater stat tracking 2020-09-07 13:38:02 +03:00
vyzo
9f5b106a12 mix total accounting components with different weights 2020-09-07 13:38:02 +03:00
vyzo
6dbdaed793 count all rejections by default 2020-09-07 13:38:02 +03:00
vyzo
7912408642 fix non-determinism in test 2020-09-07 13:38:02 +03:00
vyzo
955344bf9b tweak probability threshold 2020-09-07 13:38:02 +03:00
vyzo
ff1b1a9772 also account for duplicates in gating decisions 2020-09-07 13:38:02 +03:00
vyzo
ec44a63c9f test throttle code path in gossip tracer 2020-09-07 13:38:02 +03:00
vyzo
811ca922d4 add test for peer gater 2020-09-07 13:38:02 +03:00
vyzo
f7f6f59758 more efficient promise processing on throttling 2020-09-07 13:38:02 +03:00
vyzo
93f4f91dcf trace throttle peers to avoid breaking promises unfairly 2020-09-07 13:38:02 +03:00
vyzo
854ca9a6ad better log messages around gating 2020-09-07 13:38:02 +03:00
vyzo
45272722d2 implement peer gater 2020-09-07 13:38:02 +03:00
vyzo
2bc51e0cf2 peer gater scaffolding 2020-09-07 13:38:02 +03:00
vyzo
3b92bdc1e9 rich router acceptance semantics
Allows us to ignore payload messages when the validation queue is under strain
2020-09-07 13:38:02 +03:00
vyzo
06a12f17b7 reduce log verbosity; debug mostly 2020-09-01 20:42:50 +03:00
Steven Allen
f125ed69b3
regenerate protobufs (#381) v0.3.5 2020-08-25 15:33:38 -07:00
vyzo
efd56962bc track validation time 2020-08-21 10:51:13 +03:00
vyzo
42cb3f984c fullfill promise as soon as a message begins validation 2020-08-21 10:51:13 +03:00
vyzo
bfc96c2cd0 don't apply penalty in self origin rejections 2020-08-20 22:43:35 +03:00
vyzo
b7c28b504d add behaviour penalty threshold 2020-08-20 18:03:32 +03:00
Louis Thibault
c5ece1d0c7 Add String() method to Topic. 2020-08-11 14:25:09 +03:00
vyzo
769831b478 add regression test for issue 371 v0.3.4 2020-08-10 21:00:00 +03:00
vyzo
3a81c24073 don't add direct peers to fanout 2020-08-10 21:00:00 +03:00
Raúl Kripalani
a86ae585a6 reference spec change in comment. 2020-08-10 15:18:25 +03:00
vyzo
46536eccc4 fix backoff slack time 2020-08-10 15:18:25 +03:00
vyzo
8c08ebaecb use the heartbeat interval for slack time 2020-08-10 15:18:25 +03:00
vyzo
f2c25c2228 add slack time to prune backoff clearance 2020-08-10 15:18:25 +03:00
Steven Allen
df9592859d
fix: call the correct tracer function in FloodSubRouter.Leave (#373)
fixes #372
2020-08-10 01:31:21 -07:00
vyzo
2b5243c72f downgrade trace buffer overflow log to debug 2020-07-31 19:15:31 +03:00
vyzo
5a3055d33a track topics in Reject/Duplicate/Deliver events 2020-07-31 19:15:31 +03:00
vyzo
fa4d16e08a add topics to Reject/Duplicate/Deliver events 2020-07-31 19:15:31 +03:00
vyzo
15f4f1f138 fix flaky test
10ms is _not_ sufficient for travis
v0.3.3
2020-07-30 14:27:04 +03:00