Add ability to broadcast our own node_announcement.
authorMatt Corallo <git@bluematt.me>
Fri, 3 Jan 2020 01:32:37 +0000 (20:32 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commit06d2a07cbaf90cd997875277e014fe2db7750570
tree474deb86f88ea7cf5abaa5eb63093f2828a8eb71
parent6883f9dc311c525fe7721b3aa32be039dfd679e8
Add ability to broadcast our own node_announcement.

This is a somewhat-obvious oversight in the capabilities of
rust-lightning, though not a particularly interesting one until we
start relying on node_features (eg for variable-length-onions and
Base AMP).

Sadly its not fully automated as we don't really want to store the
list of available addresses from the user. However, with a simple
call to ChannelManager::broadcast_node_announcement and a sensible
peer_handler, the announcement is made.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/events.rs