Skip to content

Commit c087503

Browse files
committed
f use time in close
1 parent 683701a commit c087503

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
@@ -3584,6 +3584,10 @@ where
35843584
let old_serial = self.last_node_announcement_serial.load(Ordering::Acquire);
35853585
if old_serial >= header.time as usize { break; }
35863586
if self.last_node_announcement_serial.compare_exchange(old_serial, header.time as usize, Ordering::AcqRel, Ordering::Relaxed).is_ok() {
3587+
let mut payment_secrets = self.pending_inbound_payments.lock().unwrap();
3588+
payment_secrets.retain(|_, inbound_payment| {
3589+
inbound_payment.expiry_time > header.time as u64
3590+
});
35873591
break;
35883592
}
35893593
}

0 commit comments

Comments
 (0)