@@ -3147,13 +3147,20 @@ macro_rules! send_channel_ready {
3147
3147
let outbound_alias_insert = short_to_chan_info.insert($channel.context.outbound_scid_alias(), ($channel.context.get_counterparty_node_id(), $channel.context.channel_id()));
3148
3148
assert!(outbound_alias_insert.is_none() || outbound_alias_insert.unwrap() == ($channel.context.get_counterparty_node_id(), $channel.context.channel_id()),
3149
3149
"SCIDs should never collide - ensure you weren't behind the chain tip by a full month when creating channels");
3150
+ insert_short_channel_id!(short_to_chan_info, $channel);
3151
+ }}
3152
+ }
3153
+
3154
+ macro_rules! insert_short_channel_id {
3155
+ ($short_to_chan_info: ident, $channel: expr) => {{
3150
3156
if let Some(real_scid) = $channel.funding.get_short_channel_id() {
3151
- let scid_insert = short_to_chan_info.insert(real_scid, ($channel.context.get_counterparty_node_id(), $channel.context.channel_id()));
3157
+ let scid_insert = $ short_to_chan_info.insert(real_scid, ($channel.context.get_counterparty_node_id(), $channel.context.channel_id()));
3152
3158
assert!(scid_insert.is_none() || scid_insert.unwrap() == ($channel.context.get_counterparty_node_id(), $channel.context.channel_id()),
3153
3159
"SCIDs should never collide - ensure you weren't behind the chain tip by a full month when creating channels");
3154
3160
}
3155
3161
}}
3156
3162
}
3163
+
3157
3164
macro_rules! emit_funding_tx_broadcast_safe_event {
3158
3165
($locked_events: expr, $channel: expr, $funding_txo: expr) => {
3159
3166
if !$channel.context.funding_tx_broadcast_safe_event_emitted() {
@@ -11729,6 +11736,11 @@ where
11729
11736
},
11730
11737
#[cfg(splicing)]
11731
11738
Some(FundingConfirmedMessage::Splice(splice_locked)) => {
11739
+ if announcement_sigs.is_some() {
11740
+ let mut short_to_chan_info = self.short_to_chan_info.write().unwrap();
11741
+ insert_short_channel_id!(short_to_chan_info, funded_channel);
11742
+ }
11743
+
11732
11744
pending_msg_events.push(MessageSendEvent::SendSpliceLocked {
11733
11745
node_id: funded_channel.context.get_counterparty_node_id(),
11734
11746
msg: splice_locked,
0 commit comments