Fix test-setup LND sync check on regtest

Mine a block before running checks to wake up LND sync status.
On regtest, LND reports "synced_to_chain: false" when no blocks
have been mined recently, even though it's actually synced.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-01-24 18:49:51 -05:00
commit 690b1548ca

View file

@ -320,6 +320,11 @@
echo "═══════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════"
echo "" echo ""
# Mine a block to wake up LND sync (regtest quirk: LND reports
# "not synced" when no blocks mined recently)
docker exec lamassu-bitcoind bitcoin-cli -regtest -rpcuser=lamassu -rpcpassword=lamassu -generate 1 >/dev/null 2>&1
sleep 1
PASSED=0 PASSED=0
FAILED=0 FAILED=0