Add the ability to broadcast gossip msgs via the event pipeline
authorMatt Corallo <git@bluematt.me>
Sun, 22 Jan 2023 03:41:28 +0000 (03:41 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 8 Feb 2023 23:54:30 +0000 (23:54 +0000)
commit41e6eba20106e66f4c28422ff8e4632e98b2fb42
tree0cb78e92d51da5daec4be40cc6314fa7515c5797
parent67c9c7f2ae150a287370d56373f673e116172690
Add the ability to broadcast gossip msgs via the event pipeline

When we process gossip messages asynchronously we may find that we
want to forward a gossip message to a peer after we've returned
from the existing `handle_*` method. In order to do so, we need to
be able to send arbitrary loose gossip messages back to the
`PeerManager` via `MessageSendEvent`.

This commit modifies `MessageSendEvent` in order to support this.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/util/events.rs