@@ -5058,10 +5058,13 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5058
5058
self.get_initial_counterparty_commitment_signature(funding, logger)
5059
5059
}
5060
5060
5061
- fn check_for_funding_tx_confirmed(
5061
+ fn check_for_funding_tx_confirmed<L: Deref> (
5062
5062
&mut self, funding: &mut FundingScope, block_hash: &BlockHash, height: u32,
5063
- index_in_block: usize, tx: &mut ConfirmedTransaction,
5064
- ) -> Result<bool, ClosureReason> {
5063
+ index_in_block: usize, tx: &mut ConfirmedTransaction, logger: &L,
5064
+ ) -> Result<bool, ClosureReason>
5065
+ where
5066
+ L::Target: Logger,
5067
+ {
5065
5068
let funding_txo = match funding.get_funding_txo() {
5066
5069
Some(funding_txo) => funding_txo,
5067
5070
None => {
@@ -5118,6 +5121,14 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
5118
5121
Err(_) => panic!("Block was bogus - either height was > 16 million, had > 16 million transactions, or had > 65k outputs"),
5119
5122
};
5120
5123
5124
+ log_info!(
5125
+ logger,
5126
+ "Funding txid {} for channel {} confirmed in block {}",
5127
+ funding_txo.txid,
5128
+ &self.channel_id(),
5129
+ block_hash,
5130
+ );
5131
+
5121
5132
return Ok(true);
5122
5133
}
5123
5134
}
@@ -8683,7 +8694,7 @@ impl<SP: Deref> FundedChannel<SP> where
8683
8694
// and send it immediately instead of waiting for a best_block_updated call (which may have
8684
8695
// already happened for this block).
8685
8696
let is_funding_tx_confirmed = self.context.check_for_funding_tx_confirmed(
8686
- &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx,
8697
+ &mut self.funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8687
8698
)?;
8688
8699
8689
8700
if is_funding_tx_confirmed {
@@ -8713,7 +8724,7 @@ impl<SP: Deref> FundedChannel<SP> where
8713
8724
#[cfg(splicing)]
8714
8725
for (index, funding) in self.pending_funding.iter_mut().enumerate() {
8715
8726
if self.context.check_for_funding_tx_confirmed(
8716
- funding, block_hash, height, index_in_block, &mut confirmed_tx,
8727
+ funding, block_hash, height, index_in_block, &mut confirmed_tx, logger,
8717
8728
)? {
8718
8729
if confirmed_funding_index.is_some() {
8719
8730
let err_reason = "splice tx of another pending funding already confirmed";
0 commit comments