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>
Mon, 24 May 2021 22:05:41 +0000 (22:05 +0000)
commitbc6281693715b01f719a815119b60d3f84d9f6f6
tree092130d0282040270fc19da2b7474064f50a86c0
parent30c1a7c24e565b41452c431c0f6a35f37ecc32b4
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