Skip to content

Commit 9707653

Browse files
committed
f - update next_{local|remote}_commitment_tx_fee_info_cached
1 parent 7a3013b commit 9707653

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6364,8 +6364,10 @@ impl<SP: Deref> FundedChannel<SP> where
63646364

63656365
#[cfg(any(test, fuzzing))]
63666366
{
6367-
*self.funding.next_local_commitment_tx_fee_info_cached.lock().unwrap() = None;
6368-
*self.funding.next_remote_commitment_tx_fee_info_cached.lock().unwrap() = None;
6367+
for funding in core::iter::once(&mut self.funding).chain(self.pending_funding.iter_mut()) {
6368+
*funding.next_local_commitment_tx_fee_info_cached.lock().unwrap() = None;
6369+
*funding.next_remote_commitment_tx_fee_info_cached.lock().unwrap() = None;
6370+
}
63696371
}
63706372

63716373
match &self.context.holder_signer {

0 commit comments

Comments
 (0)