nim-libp2p/libp2p/protocols/pubsub
Jacek Sieka 5819c6a9a7
gossipsub / floodsub fixes (#348)
* mcache fixes

* remove timed cache - the window shifting already removes old messages
* ref -> object
* avoid unnecessary allocations with `[]` operator

* simplify init

* fix several gossipsub/floodsub issues

* floodsub, gossipsub: don't rebroadcast messages that fail validation
(!)
* floodsub, gossipsub: don't crash when unsubscribing from unknown
topics (!)
* gossipsub: don't send message to peers that are not interested in the
topic, when messages don't share topic list
* floodsub: don't repeat all messages for each message when
rebroadcasting
* floodsub: allow sending empty data
* floodsub: fix inefficient unsubscribe
* sync floodsub/gossipsub logging
* gossipsub: include incoming messages in mcache (!)
* gossipsub: don't rebroadcast already-seen messages (!)
* pubsubpeer: remove incoming/outgoing seen caches - these are already
handled in gossipsub, floodsub and will cause trouble when peers try to
resubscribe / regraft topics (because control messages will have same
digest)
* timedcache: reimplement without timers (fixes timer leaks and extreme
inefficiency due to per-message closures, futures etc)
* timedcache: ref -> obj
2020-09-04 08:10:32 +02:00
..
rpc avoid send deadlock by not allowing send to block (#342) 2020-09-01 09:33:03 +02:00
floodsub.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
gossipsub.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
mcache.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
peertable.nim Rework pubsub (#322) 2020-08-11 18:05:49 -06:00
pubsub.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
pubsubpeer.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
timedcache.nim gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00