diff options
Diffstat (limited to 'names')
| -rw-r--r-- | names/server.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/names/server.js b/names/server.js index 34aae77..4d7a81c 100644 --- a/names/server.js +++ b/names/server.js @@ -310,7 +310,16 @@ function usableInvoice(pr, sat, network = null) { } catch { return false; } } -const ln = CFG.ln ? lnBackend(CFG.ln) : null; +// The node's socket file is mounted into this container; when the node is +// restarted the mount goes stale and every invoice fails until this process +// is restarted too (2026-11-12, 2026-11-20). Exit and let docker do that. +const ln = CFG.ln ? lnBackend({ + ...CFG.ln, + onDead: (e) => { + console.error(`lightning socket dead for a minute (${e.message}); exiting so the restart mounts the new one`); + process.exit(1); + }, +}) : null; // Optional mutinynet CLN — lets staging sell (play-money) hats. Nothing else // uses it: names, offers and forwards remain mainnet affairs. const lnMut = CFG.lnMut ? lnBackend(CFG.lnMut) : null; |
