diff options
| author | Adam Soltys <[email protected]> | 2026-05-17 23:19:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-05-17 23:21:39 -0700 |
| commit | 3b7a1efaa1040de29d97640b371f24b41a6562a0 (patch) | |
| tree | 4ebdf9c9b5f17d1c5d23f8d2c48d9b5555721aeb /lib/migrate.js.map | |
| parent | 609fcebe634b499c1133ea26f162c24e1c76d6d4 (diff) | |
| download | coinos-server-3b7a1efaa1040de29d97640b371f24b41a6562a0.tar.gz coinos-server-3b7a1efaa1040de29d97640b371f24b41a6562a0.zip | |
nwc: handle stale client state cleanly and skip reverted-duplicate records
Three small NWC robustness fixes that surfaced from the Apr 29
double-credit cleanup:
- fail loudly when an NWC request references a pubkey whose user record
no longer exists (migrated/deleted account); previously crashed inside
handle() on `user.id`
- swallow `pubkey not found` and `user not found` in the per-event catch
so deleted-app/migrated-user spam doesn't fill the error log — these
are client-side staleness, not server faults
- use gf() instead of g() when fetching payment records (consistent with
the rest of the codebase: arc fallback for wiped main-db pointers)
- filter `revertedDuplicate` payments out of list_transactions so
clients never see the doubled records that were later reverted
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Diffstat (limited to 'lib/migrate.js.map')
0 files changed, 0 insertions, 0 deletions
