Skip to content

Commit 5f97735

Browse files
committed
f use time in close
1 parent 035afa6 commit 5f97735

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,6 +3597,10 @@ where
35973597
}
35983598
max_time!(self.last_node_announcement_serial);
35993599
max_time!(self.highest_seen_timestamp);
3600+
let mut payment_secrets = self.pending_inbound_payments.lock().unwrap();
3601+
payment_secrets.retain(|_, inbound_payment| {
3602+
inbound_payment.expiry_time > header.time as u64
3603+
});
36003604
}
36013605

36023606
fn get_relevant_txids(&self) -> Vec<Txid> {

0 commit comments

Comments
 (0)