Skip to content

Commit 9ddbe9f

Browse files
committed
f - update next_{local|remote}_commitment_tx_fee_info_cached
1 parent d98adeb commit 9ddbe9f

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
@@ -6365,8 +6365,10 @@ impl<SP: Deref> FundedChannel<SP> where
63656365

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

63726374
match &self.context.holder_signer {

0 commit comments

Comments
 (0)