mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
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. |
||
|---|---|---|
| .. | ||
| controllers | ||
| models | ||
| routes | ||
| utils | ||
| tsconfig.server.json | ||