RTL/backend
saubyk 6e61d1b759 Address review: coerce timeout_seconds to a positive finite number
The transport timeout added for the sendPayment race was derived from
req.body.timeout_seconds, which was only guarded by "|| 600": a
non-numeric value became NaN, which axios treats as no timeout,
silently dropping the transport ceiling for this endpoint.

timeout_seconds is now coerced to a positive finite number (falling
back to 600), which also normalizes the value sent to LND. Large
values are intentionally not capped: the transport bound must stay
above LND's own timeout_seconds bound or the race the margin fixes
would return.

Verified on the fixture: a payment sent with timeout_seconds "abc"
falls back to 600 and completes; the write suite re-passes.
2026-07-19 22:01:23 -07:00
..
controllers Address review: coerce timeout_seconds to a positive finite number 2026-07-19 22:01:23 -07:00
models Add Disable Authentication option in the backend 2026-07-19 22:01:23 -07:00
routes Update project code according to dependencies update 2026-02-01 09:06:07 -08:00
utils Address review: exempt LND subscription streams from the request timeout 2026-07-19 22:01:23 -07:00