We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unwrap
get_announcement_sigs
1 parent 82fdf0f commit adcac97Copy full SHA for adcac97
lightning/src/ln/channel.rs
@@ -4900,11 +4900,16 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
4900
},
4901
Ok(v) => v
4902
};
4903
+ let short_channel_id = match self.context.get_short_channel_id() {
4904
+ Some(scid) => scid,
4905
+ None => return None,
4906
+ };
4907
+
4908
self.context.announcement_sigs_state = AnnouncementSigsState::MessageSent;
4909
4910
Some(msgs::AnnouncementSignatures {
4911
channel_id: self.context.channel_id(),
- short_channel_id: self.context.get_short_channel_id().unwrap(),
4912
+ short_channel_id,
4913
node_signature: our_node_sig,
4914
bitcoin_signature: our_bitcoin_sig,
4915
})
0 commit comments