@@ -5315,10 +5315,13 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5315
5315
self.get_initial_counterparty_commitment_signature(funding, logger)
5316
5316
}
5317
5317
5318
- fn check_for_funding_tx_confirmed(
5318
+ fn check_for_funding_tx_confirmed<L: Deref> (
5319
5319
&mut self, funding: &mut FundingScope, block_hash: &BlockHash, height: u32,
5320
- index_in_block: usize, tx: &mut ConfirmedTransaction,
5321
- ) -> Result<bool, ClosureReason> {
5320
+ index_in_block: usize, tx: &mut ConfirmedTransaction, logger: &L,
5321
+ ) -> Result<bool, ClosureReason>
5322
+ where
5323
+ L::Target: Logger,
5324
+ {
5322
5325
let funding_txo = match funding.get_funding_txo() {
5323
5326
Some(funding_txo) => funding_txo,
5324
5327
None => {
@@ -5368,6 +5371,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5368
5371
Err(_) => panic!("Block was bogus - either height was > 16 million, had > 16 million transactions, or had > 65k outputs"),
5369
5372
};
5370
5373
5374
+ log_info!(
5375
+ logger,
5376
+ "Funding txid {} for channel {} confirmed in block {}",
5377
+ funding_txo.txid,
5378
+ &self.channel_id(),
5379
+ block_hash,
5380
+ );
5381
+
5371
5382
return Ok(true);
5372
5383
}
5373
5384
}
@@ -8805,7 +8816,7 @@ impl<SP: Deref> FundedChannel<SP> where
8805
8816
// and send it immediately instead of waiting for a best_block_updated call (which may have
8806
8817
// already happened for this block).
8807
8818
let is_funding_tx_confirmed = self.context.check_for_funding_tx_confirmed(
8808
- &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx,
8819
+ &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8809
8820
)?;
8810
8821
8811
8822
if is_funding_tx_confirmed {
@@ -8837,7 +8848,7 @@ impl<SP: Deref> FundedChannel<SP> where
8837
8848
#[cfg(splicing)]
8838
8849
for (index, funding) in self.pending_funding.iter_mut().enumerate() {
8839
8850
if self.context.check_for_funding_tx_confirmed(
8840
- funding, block_hash, height, index_in_block, &mut confirmed_tx,
8851
+ funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8841
8852
)? {
8842
8853
if funding_already_confirmed || confirmed_funding_index.is_some() {
8843
8854
let err_reason = "splice tx of another pending funding already confirmed";
0 commit comments