lnd.xprv/discovery
Olaoluwa Osuntokun f823a860c8
discovery: add new interface NetworkPeerBootstrapper w/ 2 impls
This commit adds a new interface the to discovery package:
NetworkPeerBootstrapper. The NetworkPeerBootstrapper interface is meant
to be used to bootstrap a new peer joining the network to the set of
existing active peers within the network. Callers are encouraged to
utilize several boostrappers in series as redundant sources of
information. The MultiSourceBootstrap function will takes a set of
boostrappers, and compose their outputs into a single unified set of
addresses.

Two concrete implementations of the NetworkPeerBootstrapper interface
have been added as a part of this commit: the ChannelGraphBootstrapper
and the DNSSeedBootstrapper. The former will utilize the authenticated
node advertisements within the calling nodes view to boostrap new
connections. The latter will use a set of BOLT-0010 compliant DNS seeds
to query. This DNS seeding more will likely be used by nodes initial
joining the network, as they may not yet have the channel graph as they
haven’t connected to any peers.
2017-09-03 16:51:17 -07:00
..
ann_validation.go discovery: rename validation.go to ann_validation.go 2017-09-03 16:18:28 -07:00
bootstrapper.go discovery: add new interface NetworkPeerBootstrapper w/ 2 impls 2017-09-03 16:51:17 -07:00
gossiper_test.go discovery: rename service.go to gossiper.go 2017-09-03 16:21:10 -07:00
gossiper.go discovery: ignore any incoming channel ann's for an unknown chain 2017-09-03 16:41:09 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
utils.go discovery: fill in ChainHash, and Features in ChannelAnnouncement 2017-08-22 00:52:42 -07:00