-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
When a Lightning backend is misconfigured (wrong URL, missing credentials, unreachable host), the first error a developer sees comes from a failed HTTP call deep in the backend code. Adding eager validation in the backend factory functions would surface clear, actionable messages at startup rather than at first request time.
Scope
- Add URL format validation in
phoenixdBackend(),lndBackend(),clnBackend(), andlnbitsBackend()factory functions - Validate that required credentials are present and non-empty (e.g.
passwordfor Phoenixd,macaroonfor LND,runefor CLN) - Throw descriptive errors like
"phoenixdBackend: password is required"or"lndBackend: url must start with https://" - Add unit tests for each validation case
Helpful context
src/backends/phoenixd.ts,src/backends/lnd.ts,src/backends/cln.ts,src/backends/lnbits.ts- the four backend factoriessrc/booth.tslines 92-95 - existing validation pattern in the Booth constructorsrc/backends/conformance.ts- shared test factory (can be extended)- Estimated effort: 2-3 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers