19 Commits

Author SHA1 Message Date
vyzo
1f5959bf54 fix slice bounds issues; getCount takes care of the slicing 2018-06-12 08:00:17 -07:00
vyzo
599ccffecd shift the message history window at the end of the heartbeat 2018-06-12 08:00:17 -07:00
vyzo
64cdbbabbc remove pending gossip and control messages on RemovePeer 2018-06-12 08:00:17 -07:00
vyzo
bd29e81e3a history and gossip length are named constants 2018-06-12 08:00:17 -07:00
vyzo
c5fe290389 reduce gossip amplification; don't send to mesh peers 2018-06-12 08:00:17 -07:00
vyzo
0e288dc741 delete mesh before sending prunes on leave 2018-06-12 08:00:17 -07:00
vyzo
64d35994d1 shuffle peers 2018-06-12 08:00:17 -07:00
vyzo
07875f149e implement flush 2018-06-12 08:00:17 -07:00
vyzo
74a10cfa70 piggybacking details 2018-06-12 08:00:17 -07:00
vyzo
7251c64e65 control message piggybacking logic 2018-06-12 08:00:17 -07:00
vyzo
78618fce23 maintain fanout peer lists on heartbeat 2018-06-12 08:00:17 -07:00
vyzo
bc25116516 clean peers that have left the topic on heartbeat 2018-06-12 08:00:17 -07:00
vyzo
73da341386 hearbeat preliminaries: overlay management 2018-06-12 08:00:17 -07:00
vyzo
34509d47b3 implement Join and Leave, refactor sendRPC 2018-06-12 08:00:17 -07:00
vyzo
e1fbe11c97 refactor Publish to use getPeers 2018-06-12 08:00:17 -07:00
vyzo
6a177a7396 handle gossipsub control messages 2018-06-12 08:00:17 -07:00
vyzo
375c4176b9 gossipsub publish 2018-06-12 08:00:17 -07:00
vyzo
b867200fee gossipsub: heartbeat timer 2018-06-12 08:00:17 -07:00
vyzo
448f380722 gossipsub: router outline 2018-06-12 08:00:17 -07:00