aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-20 01:55:55 -0700
committerAdam Soltys <[email protected]>2026-11-20 01:55:55 -0700
commit8ec9a1e70d7b43455c89768f27187f15d5983a38 (patch)
treedd5b9387672b212da2df7c5a27ba91a3fb505a6a /package.json
parent6efa593d210370339c23c7cc01caa69a8dc233a5 (diff)
downloadcoinosv3-server-8ec9a1e70d7b43455c89768f27187f15d5983a38.tar.gz
coinosv3-server-8ec9a1e70d7b43455c89768f27187f15d5983a38.zip
names restarts itself when the Lightning node's socket goes stale. "tried to zap pnk but it said names.coinos.io could not create an invoice" (Adam, 2026-11-20). bcln was recreated at 04:26Z; names has the node's socket file mounted, the mount kept pointing at the old file, and every @coinos.io LNURL invoice failed with ECONNREFUSED for four and a half hours until names was restarted by hand. The same thing cost 13 hours on 2026-11-11. The socket client now counts refused connections: after a minute of nothing but refusals (ten minutes if this process never reached the node, so a node that is down doesn't restart names in a loop) names logs it and exits, and docker's restart mounts the new socket. Only the mainnet node does this; the mutinynet one is left alone. New bridge/ln.test.js passes (4 checks), with the store and forget tests.
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6Upic5L6MMJzkTn8zg
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index 357f54f..1915df8 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
"description": "Server-side services for coinos v3: the payment-name registrar, NWC push, Blossom sync storage, the public feed and media proxy",
"license": "MIT",
"scripts": {
- "test": "bun test names/store.test.js names/forget.test.js",
+ "test": "bun test names/store.test.js names/forget.test.js bridge/ln.test.js",
"names": "bun names/server.js",
"nwcpush": "bun nwcpush/server.js",
"blossom": "bun blossom/server.js",