diff options
| author | Adam Soltys <[email protected]> | 2026-03-27 23:58:51 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-27 23:58:56 -0700 |
| commit | a574e774318a37bfc1e5c638a3d83e3fb9c180d2 (patch) | |
| tree | 27bdabdd92b59d53da87827965263e19da29081f /lib/lightning.ts | |
| parent | af568c46cb3da198ea8614d21616bac3951f3262 (diff) | |
| download | coinos-server-a574e774318a37bfc1e5c638a3d83e3fb9c180d2.tar.gz coinos-server-a574e774318a37bfc1e5c638a3d83e3fb9c180d2.zip | |
feat: blocked address protection, LNURL proxy, replay timestamps
- Add lib/changeid.ts for in-process account rekeying
- Block sends to addresses in redis blocked_addresses set, auto-rekey on attempt
- Add created param to credit() for accurate replay timestamps
- Add paid_at to replay() for correct payment dates
- Add /lnurl/proxy endpoint for server-side LNURL callback fetching
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Diffstat (limited to 'lib/lightning.ts')
| -rw-r--r-- | lib/lightning.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts index 3b1882d4..4eb70e00 100644 --- a/lib/lightning.ts +++ b/lib/lightning.ts @@ -125,6 +125,7 @@ export async function replay(index) { description, amount_received_msat, payment_preimage: preimage, + paid_at, } = inv; const received = Math.round(amount_received_msat / 1000); @@ -155,6 +156,7 @@ export async function replay(index) { memo: invoice.memo, ref: preimage, type: bolt12 ? PaymentType.bolt12 : PaymentType.lightning, + created: paid_at ? paid_at * 1000 : undefined, }); return p; |
