From 06f73b2d7626beda9f2438e45363fc37be53e2f8 Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 2 Jul 2026 18:33:31 +0200 Subject: [PATCH] fix(machine): point DEV_DEFAULT_RELAY at the real dev relay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The last-ditch dev fallback (used only when neither env nor the pairing seed supplies a relay) was ws://localhost:7777 — a standalone strfry we no longer run. Align it to the dev stack's LNbits bundled nostrrelay (ws://localhost:5001/nostrrelay/test) so the fallback points at a relay that actually exists. Co-Authored-By: Claude Opus 4.8 --- apps/machine/src/services/lightning.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/machine/src/services/lightning.ts b/apps/machine/src/services/lightning.ts index 039cf01..1f5f6fc 100644 --- a/apps/machine/src/services/lightning.ts +++ b/apps/machine/src/services/lightning.ts @@ -100,8 +100,9 @@ async function loadLightningConfig(): Promise { // Config is loaded async now - will be set in initializeLightningServices let CONFIG: LightningConfig -/** Dev-only relay used when neither env nor the pairing supplies one. */ -const DEV_DEFAULT_RELAY = 'ws://localhost:7777' +/** Dev-only relay used when neither env nor the pairing supplies one. Matches + * the dev stack — LNbits's bundled nostrrelay (no separate strfry container). */ +const DEV_DEFAULT_RELAY = 'ws://localhost:5001/nostrrelay/test' /** Safety timeout in ms (15 minutes) — absolute maximum LNURL session lifetime. * Sessions are normally cleaned up by the state machine on idle transition.