micro/network
Milos Gajdos bf42c028fb
Added sync message. Refactored connect flow. Adverts are gossipped.
This commit adds a Sync message which is sent as a reply to Connect
message. This should in theory speed up convergence of a (re)connecting
node.

We respond to Sync message by sending a peer message back to the peer
origin of the Sync message. We consequently update our routing table and
peer graph with the data sent in via Sync message.

We now gossip advertse to up to 3 randomly selected peers instead of
sending a multicast message to the network.

Equally, Solicitation i.e. full table adverts are gossipped to a
randomly selected peer. If that fails we send a multicast message to the
network.
2020-01-13 20:14:29 +00:00
..
resolver fix tiny error in linting fixes 2019-12-09 11:18:45 +08:00
service/proto Added sync message. Refactored connect flow. Adverts are gossipped. 2020-01-13 20:14:29 +00:00
default.go Added sync message. Refactored connect flow. Adverts are gossipped. 2020-01-13 20:14:29 +00:00
network.go final updates 2019-12-13 15:27:47 +00:00
node_test.go strip handlers 2019-12-10 11:46:13 +00:00
node.go Add RefreshSync method for Sync bookkeeping 2020-01-13 20:14:29 +00:00
options.go save changes 2019-12-07 23:28:39 +00:00