@@ -5063,10 +5063,13 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5063
5063
self.get_initial_counterparty_commitment_signature(funding, logger)
5064
5064
}
5065
5065
5066
- fn check_for_funding_tx_confirmed(
5066
+ fn check_for_funding_tx_confirmed<L: Deref> (
5067
5067
&mut self, funding: &mut FundingScope, block_hash: &BlockHash, height: u32,
5068
- index_in_block: usize, tx: &mut ConfirmedTransaction,
5069
- ) -> Result<bool, ClosureReason> {
5068
+ index_in_block: usize, tx: &mut ConfirmedTransaction, logger: &L,
5069
+ ) -> Result<bool, ClosureReason>
5070
+ where
5071
+ L::Target: Logger,
5072
+ {
5070
5073
let funding_txo = match funding.get_funding_txo() {
5071
5074
Some(funding_txo) => funding_txo,
5072
5075
None => {
@@ -5116,6 +5119,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5116
5119
Err(_) => panic!("Block was bogus - either height was > 16 million, had > 16 million transactions, or had > 65k outputs"),
5117
5120
};
5118
5121
5122
+ log_info!(
5123
+ logger,
5124
+ "Funding txid {} for channel {} confirmed in block {}",
5125
+ funding_txo.txid,
5126
+ &self.channel_id(),
5127
+ block_hash,
5128
+ );
5129
+
5119
5130
return Ok(true);
5120
5131
}
5121
5132
}
@@ -8686,7 +8697,7 @@ impl<SP: Deref> FundedChannel<SP> where
8686
8697
// and send it immediately instead of waiting for a best_block_updated call (which may have
8687
8698
// already happened for this block).
8688
8699
let is_funding_tx_confirmed = self.context.check_for_funding_tx_confirmed(
8689
- &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx,
8700
+ &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8690
8701
)?;
8691
8702
8692
8703
if is_funding_tx_confirmed {
@@ -8718,7 +8729,7 @@ impl<SP: Deref> FundedChannel<SP> where
8718
8729
#[cfg(splicing)]
8719
8730
for (index, funding) in self.pending_funding.iter_mut().enumerate() {
8720
8731
if self.context.check_for_funding_tx_confirmed(
8721
- funding, block_hash, height, index_in_block, &mut confirmed_tx,
8732
+ funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8722
8733
)? {
8723
8734
if funding_already_confirmed || confirmed_funding_index.is_some() {
8724
8735
let err_reason = "splice tx of another pending funding already confirmed";
0 commit comments