Process announcement_signatures messages in Channel and store sigs
authorMatt Corallo <git@bluematt.me>
Thu, 6 May 2021 01:15:35 +0000 (01:15 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 25 May 2021 20:06:45 +0000 (20:06 +0000)
commita87053a16e7e47b82c3bd34cfe635b1f73cfec92
treeb76551bee06c2999e7c7a3e15a1c74c3cf42ebde
parent3d1c72e73fde6e4d58b087433acdf0e4b94ee0f6
Process announcement_signatures messages in Channel and store sigs

Previously we handled most of the logic of announcement_signatures
in ChannelManager, rather than Channel. This is somewhat unique as
far as our message processing goes, but it also avoided having to
pass the node_secret in to the Channel.

Eventually, we'll move the node_secret behind the signer anyway, so
there isn't much reason for this, and storing the
announcement_signatures-provided signatures in the Channel allows
us to recreate the channel_announcement later for rebroadcast,
which may be useful.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs