This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
token-gated-economy/scripts/bitcoin-ln-node
Alexander Whitestone d560a27629
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 1s
fix: separate reachability check from version detection in get-lnbits-key.sh
The script used /api/v1/health for both reachability testing and version
detection. Since that endpoint only exists on LNbits 0.12+, old versions
were incorrectly reported as "not reachable" instead of falling through
to the legacy superuser API path.

Now the script:
- Tests reachability via GET / (works on all LNbits versions)
- Uses /api/v1/health only for version detection
- If health endpoint is absent, correctly assumes pre-0.12 (legacy path)
- If health endpoint exists but lacks server_version, assumes 0.12+

Fixes #19

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 21:04:38 -04:00
..