From 5e94cdc11bc1c7609c6d0b7321457437a589c001 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Sun, 15 Feb 2026 18:43:50 -0500 Subject: [PATCH] fix(docker): add extra delay after graph sync for reliable payments Add 10-second delay after route verification succeeds to ensure the graph is fully propagated before attempting funding payments. Also increase max route check attempts from 12 to 15. Co-Authored-By: Claude Opus 4.5 --- docker/dev.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/dev.sh b/docker/dev.sh index b848878..56e5656 100755 --- a/docker/dev.sh +++ b/docker/dev.sh @@ -281,10 +281,12 @@ ensure_lnd4_channel() { # Verify graph has propagated by checking if lnd-3 can route to lnd-4 local route_attempts=0 - while [[ $route_attempts -lt 12 ]]; do + while [[ $route_attempts -lt 15 ]]; do local route=$(docker exec lnbits-lnd-3-1 lncli --network=regtest --rpcserver=lnd-3:10009 \ queryroutes --dest "$lnd4_pubkey" --amt 10000 2>&1) if echo "$route" | grep -q '"total_amt"'; then + # Route found - wait a bit more for full sync before payments + sleep 10 break fi sleep 5