aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/createExceptions.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-14 12:38:29 -0700
committerAdam Soltys <[email protected]>2026-06-17 07:47:48 -0700
commitaf8e395dd9ed010fce0e3b92593d5ea6d39dc65a (patch)
treeb7734423601fd0ce14ec7e09eea5299677c3b448 /scripts/createExceptions.js
parent58ae0b1d73992bdce4f44c19fde1585ea4312e29 (diff)
downloadcoinos-server-af8e395dd9ed010fce0e3b92593d5ea6d39dc65a.tar.gz
coinos-server-af8e395dd9ed010fce0e3b92593d5ea6d39dc65a.zip
nwc: fix make_invoice timestamps (ms -> seconds) breaking NWC clients
Port of master 0154bb06. generate() stores `created` in milliseconds, but NWC make_invoice returned it directly as created_at and computed expires_at = created_at + expiry. NWC timestamps are Unix SECONDS (NIP-47), so clients parsed a ~1.78e12 expires_at that overflowed their date types (ptcpay's .NET DateTimeOffset, issue #84). Convert created to seconds. Fixes #84. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Diffstat (limited to 'scripts/createExceptions.js')
0 files changed, 0 insertions, 0 deletions