networld-to / blackgate

Blockchain Based Distributed Hosting Engine
http://blackgate.networld.to
13 stars 1 forks source link

[Blockchain Handler] Implement the PeerManager #7

Open obale opened 9 years ago

obale commented 9 years ago

The PeerManager takes care of all neighbor nodes and periodically updates a list for each blockchain what peers should be contacted, e.g. for block fetching or transaction propagation.

New peers are added to the list after successful handshake via VERSION/VERSION_ACK. Additional new peers should be discovered periodically via peer exchange messages.