@@ -6248,7 +6248,11 @@ where
6248
6248
match chan.funding_transaction_signed(txid, witnesses) {
6249
6249
Ok((Some(tx_signatures), funding_tx_opt)) => {
6250
6250
if let Some(funding_tx) = funding_tx_opt {
6251
- self.broadcast_interactive_funding(chan, &funding_tx);
6251
+ self.broadcast_interactive_funding(
6252
+ chan,
6253
+ &funding_tx,
6254
+ &self.logger,
6255
+ );
6252
6256
}
6253
6257
peer_state.pending_msg_events.push(
6254
6258
MessageSendEvent::SendTxSignatures {
@@ -6293,8 +6297,14 @@ where
6293
6297
}
6294
6298
6295
6299
fn broadcast_interactive_funding(
6296
- &self, channel: &mut FundedChannel<SP>, funding_tx: &Transaction,
6300
+ &self, channel: &mut FundedChannel<SP>, funding_tx: &Transaction, logger: &L,
6297
6301
) {
6302
+ let logger = WithChannelContext::from(logger, channel.context(), None);
6303
+ log_info!(
6304
+ logger,
6305
+ "Broadcasting signed interactive funding transaction {}",
6306
+ funding_tx.compute_txid()
6307
+ );
6298
6308
self.tx_broadcaster.broadcast_transactions(&[funding_tx]);
6299
6309
{
6300
6310
let mut pending_events = self.pending_events.lock().unwrap();
@@ -9358,7 +9368,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9358
9368
match channel.funding_transaction_signed(txid, vec![]) {
9359
9369
Ok((Some(tx_signatures), funding_tx_opt)) => {
9360
9370
if let Some(funding_tx) = funding_tx_opt {
9361
- self.broadcast_interactive_funding(channel, &funding_tx);
9371
+ self.broadcast_interactive_funding(channel, &funding_tx, &self.logger );
9362
9372
}
9363
9373
if channel.context.is_connected() {
9364
9374
pending_msg_events.push(MessageSendEvent::SendTxSignatures {
@@ -10324,11 +10334,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10324
10334
});
10325
10335
}
10326
10336
if let Some(ref funding_tx) = funding_tx_opt {
10327
- self.tx_broadcaster.broadcast_transactions(&[funding_tx]);
10328
- {
10329
- let mut pending_events = self.pending_events.lock().unwrap();
10330
- emit_channel_pending_event!(pending_events, chan);
10331
- }
10337
+ self.broadcast_interactive_funding(chan, funding_tx, &self.logger);
10332
10338
}
10333
10339
},
10334
10340
None => {
0 commit comments