@@ -6300,7 +6300,11 @@ where
6300
6300
match chan. funding_transaction_signed ( txid, witnesses) {
6301
6301
Ok ( ( Some ( tx_signatures) , funding_tx_opt) ) => {
6302
6302
if let Some ( funding_tx) = funding_tx_opt {
6303
- self.broadcast_interactive_funding(chan, &funding_tx);
6303
+ self . broadcast_interactive_funding (
6304
+ chan,
6305
+ & funding_tx,
6306
+ & self . logger ,
6307
+ ) ;
6304
6308
}
6305
6309
peer_state. pending_msg_events . push (
6306
6310
MessageSendEvent :: SendTxSignatures {
@@ -6345,8 +6349,14 @@ where
6345
6349
}
6346
6350
6347
6351
fn broadcast_interactive_funding (
6348
- &self, channel: &mut FundedChannel<SP>, funding_tx: &Transaction,
6352
+ & self , channel : & mut FundedChannel < SP > , funding_tx : & Transaction , logger : & L ,
6349
6353
) {
6354
+ let logger = WithChannelContext :: from ( logger, channel. context ( ) , None ) ;
6355
+ log_info ! (
6356
+ logger,
6357
+ "Broadcasting signed interactive funding transaction {}" ,
6358
+ funding_tx. compute_txid( )
6359
+ ) ;
6350
6360
self . tx_broadcaster . broadcast_transactions ( & [ funding_tx] ) ;
6351
6361
{
6352
6362
let mut pending_events = self . pending_events . lock ( ) . unwrap ( ) ;
@@ -9415,7 +9425,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9415
9425
match channel. funding_transaction_signed ( txid, vec ! [ ] ) {
9416
9426
Ok ( ( Some ( tx_signatures) , funding_tx_opt) ) => {
9417
9427
if let Some ( funding_tx) = funding_tx_opt {
9418
- self.broadcast_interactive_funding(channel, &funding_tx);
9428
+ self . broadcast_interactive_funding ( channel, & funding_tx, & self . logger ) ;
9419
9429
}
9420
9430
if channel. context . is_connected ( ) {
9421
9431
pending_msg_events. push ( MessageSendEvent :: SendTxSignatures {
@@ -10381,11 +10391,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10381
10391
} ) ;
10382
10392
}
10383
10393
if let Some ( ref funding_tx) = funding_tx_opt {
10384
- self.tx_broadcaster.broadcast_transactions(&[funding_tx]);
10385
- {
10386
- let mut pending_events = self.pending_events.lock().unwrap();
10387
- emit_channel_pending_event!(pending_events, chan);
10388
- }
10394
+ self . broadcast_interactive_funding ( chan, funding_tx, & self . logger ) ;
10389
10395
}
10390
10396
} ,
10391
10397
None => {
0 commit comments