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>
Sun, 1 Mar 2020 04:26:16 +0000 (23:26 -0500)
commit0f3acf4a8487eb8bf5046069f98ace90fe9d845a
treefe5b3236c689a825fab7910a5f201d1ff0767b26
parent4196270caf114f1f4e15ef1dcd0f034512b72941
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