Skip to content

Commit 08aa696

Browse files
committed
Fail PendingInboundPayments after their expiry height is reached
1 parent f84b8b5 commit 08aa696

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
@@ -3701,6 +3701,10 @@ where
37013701
});
37023702
!htlcs.is_empty() // Only retain this entry if htlcs has at least one entry.
37033703
});
3704+
let mut payment_secrets = self.pending_inbound_payments.lock().unwrap();
3705+
payment_secrets.retain(|_, inbound_payment| {
3706+
inbound_payment.expiry_height > height
3707+
});
37043708
}
37053709
}
37063710

0 commit comments

Comments
 (0)