Files
palladum-lightning/tests
wqxoxo bc3b9b4f11 pay: Enforce maxdelay for direct channel payments
When paying through a direct channel, direct_pay_override() creates a
route bypassing the normal routing path, which skips the CLTV budget
check in payment_getroute(). This allows payments to succeed even when
maxdelay is set below the required min_final_cltv_expiry.

Add a check in direct_pay_override() to verify the required CLTV
doesn't exceed cltv_budget before using the direct channel shortcut.
If it exceeds, skip the direct channel and let normal routing handle
the failure with a proper error message.

Fixes: #8609

Changelog-Fixed: pay: `maxdelay` parameter now enforced for direct channel payments
2025-12-19 12:41:17 +01:00
..
2025-11-20 16:30:50 +10:30
2025-08-11 11:06:22 +09:30
2025-11-20 16:30:50 +10:30
2025-08-11 11:06:22 +09:30
2025-12-06 12:32:38 +01:00
2025-12-06 12:32:38 +01:00
2025-12-06 12:32:38 +01:00
2025-12-06 12:32:38 +01:00