aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sockets.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-04 19:04:08 -0700
committerAdam Soltys <[email protected]>2026-09-04 19:04:11 -0700
commit08c9eca46469af21aeb209066401aad8808920d7 (patch)
tree49c2f13158255352ba87a2cc012857ab86238ae9 /lib/sockets.ts
parentabf0226dd0b2e7d50c378d266ae608e651c486de (diff)
downloadcoinos-server-08c9eca46469af21aeb209066401aad8808920d7.tar.gz
coinos-server-08c9eca46469af21aeb209066401aad8808920d7.zip
meltguard: guard /v1/xpay and parse form-encoded melt bodies
nutshell >= 0.20.3.1 melts via POST /v1/xpay (form field invstring), while older CLNRest wallets post /v1/pay form-encoded under `invoice` or `bolt11`. The guard only parsed JSON `bolt11`, so form bodies never yielded an amount and were rejected, and an xpay backend would have bypassed the caps entirely. Accept both endpoints and all three field names, forward as form on the same endpoint preserving fee params. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014uxZLvYS4gH9UqUX2Ey8TV
Diffstat (limited to 'lib/sockets.ts')
0 files changed, 0 insertions, 0 deletions