Commit graph

5 commits

Author SHA1 Message Date
Patrick Mulligan
0395aab3d1 feat(docker): streamline regtest dev environment
- Fix EXTENSION_SERVICE_URL default to localhost (was hardcoded LAN IP)
- Fix strfry healthcheck (BusyBox nc lacks -z, use /proc/net/tcp)
- Add LP healthcheck + depends_on strfry
- Add regtest-bootstrap.sh: funds LND, opens channels, creates LP app
- Add regtest.sh: single management script (up/down/reset/status/logs/lncli/bitcoin)
- Minimal start uses only 3 containers (bitcoind, lnd-1, lnd-4) instead of 17

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 01:31:51 -04:00
Patrick Mulligan
25e5dfe46c fix(docker): update regtest network/volume names
Regtest stack renamed from lnbits_ prefix to regtest_ prefix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 13:02:22 -05:00
Patrick Mulligan
c8e5bf9ee1 fix(docker): ensure wallet loaded before mining in regtest
bitcoin-cli -generate requires a loaded wallet, but Bitcoin Core 25+
no longer auto-creates one. After bitcoind restarts the miner loop
silently failed, causing the chain to go stale and LND to report
synced_to_chain: false.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 14:39:26 -05:00
Patrick Mulligan
55ea9f8175 fix(docker): reduce miner interval to 30s to keep LND synced
2-minute interval caused chain staleness between blocks, making LND
report synced_to_chain: false. Zeus rejects payments when the node
is not synced. 30s keeps all nodes in sync reliably.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 20:13:01 -05:00
Patrick Mulligan
c98f126ba7 feat(docker): add dev.sh with auto-funding and ATM app setup
- Add dev.sh script for managing regtest development environment
- Implement cmd_fund to fund ATM app owner via Lightning.Pub API
- Add --fund flag to cmd_up for automatic funding on startup
- Update setup_atm_app to write VITE_APP_ID to machine .env
- Fix Electron IPC to pass appId and extensionApiUrl to renderer
- Restructure repo from nested lamassu-next/ to root

The dev.sh script now supports:
- ./dev.sh up --fund  # Start regtest and auto-fund ATM
- ./dev.sh fund       # Fund existing ATM app
- ./dev.sh status     # Show environment status
- ./dev.sh reset      # Clean restart

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-15 14:19:16 -05:00