From 690b1548ca9fbbbf34de8b0c212e34d548832669 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Sat, 24 Jan 2026 18:49:51 -0500 Subject: [PATCH] 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 --- lamassu-next/devenv.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lamassu-next/devenv.nix b/lamassu-next/devenv.nix index 49c8eb2..532c9a5 100644 --- a/lamassu-next/devenv.nix +++ b/lamassu-next/devenv.nix @@ -320,6 +320,11 @@ 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 FAILED=0