nim-libp2p-experimental/libp2p
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
..
crypto Refactor minasn1 and fix security issues. (#323) 2020-08-11 16:58:51 -06:00
daemon Peer resultification and defect only (#245) 2020-07-01 08:25:09 +02:00
muxers simplify mplex (#327) 2020-08-15 07:58:30 +02:00
protobuf Minprotobuf refactoring 2 (#269) 2020-07-15 10:25:39 +02:00
protocols gossipsub / floodsub fixes (#348) 2020-09-04 08:10:32 +02:00
stream avoid send deadlock by not allowing send to block (#342) 2020-09-01 09:33:03 +02:00
transports Fix build, add some raises (#315) 2020-08-05 19:30:57 -06:00
cid.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00
connmanager.nim logging cleanups and small fixes (#331) 2020-08-15 21:50:31 +02:00
errors.nim warn -> debug log levels in errors.nim 2020-08-20 16:53:28 +09:00
multiaddress.nim Minprotobuf refactoring 2 (#269) 2020-07-15 10:25:39 +02:00
multibase.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
multicodec.nim Crypto utilities resultification (#150) 2020-05-18 07:25:55 +02:00
multihash.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
multistream.nim logging cleanups and small fixes (#331) 2020-08-15 21:50:31 +02:00
peerid.nim Minprotobuf refactoring 2 (#269) 2020-07-15 10:25:39 +02:00
peerinfo.nim peer hooks -> events (#320) 2020-08-08 08:52:20 +02:00
standard_setup.nim Rework pubsub (#322) 2020-08-11 18:05:49 -06:00
switch.nim add muxer nil check 2020-08-17 13:32:02 +02:00
transcoder.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
utility.nim Less verbose traces (#112) 2020-03-23 15:03:36 +09:00
varint.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00
vbuffer.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00
wire.nim Less exceptions more results (#188) 2020-05-31 16:22:49 +02:00