You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LNWL: Neutrino rescan ended with error: unable to register block subscription #8460
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance failed with wallet state sync timeout at lnwallet/test/test_interface.go:2268. Same assertion/signature as this issue; the line number on current master is 2268.
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance failed with wallet state sync timeout at lnwallet/test/test_interface.go:2268. Same assertion/signature as this issue.
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance failed with wallet state sync timeout at height=870 hash=600b09d99887655f6f18f1becb80c41e0b87c60d3464310ca564ebd8dcd18bd5 at lnwallet/test/test_interface.go:2268. Same assertion/signature as this issue.
Prescribed run: GOMAXPROCS=2 go test -race -test.timeout=30m -tags="dev test_db_postgres autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc switchrpc walletrpc watchtowerrpc nolog" -run 'TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance' -count=200 -p 1 -parallel 2 ./lnwallet/test/neutrino
Result: 20 completed subtest runs / 20 passes / 0 subtest failures, then the package hit the global 30m test timeout (panic: test timed out after 30m0s). At ~26s per run, 200 iterations cannot fit in the 30m window; no wallet state sync timeout reproduced locally.
Flake cop note: the three recent merge_queue occurrences of this failure mode (runs 45438174642, 45557331723, 45629661915 — all TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance timing out in waitForWalletSync after the miner reorg) are addressed by open PR #11638 (lnwallet/test: neutrino filter queries under load — the test's neutrino.QueryTimeout of 500ms with a single retry against one on-demand filter peer stalls the synced stamp; raised to 3s with 3 retries).
No new occurrences since 2026-11-25. My local -count=200 reproduction attempt on 2026-11-25 did not fail within the prescribed 30-minute window (20 completed runs, 20 passes, then the global timeout), so I could not independently verify the fix — leaving verification to CI on that PR.
Assertion: wallet state sync timeout at height=861 (test_interface.go:2268)
This merge-queue run was testing #11638 itself, which raised the test's neutrino.QueryTimeout to 3s and QueryNumRetries to 3. The stall still happened with that change in place. #11638 has since merged (f3a71c1), so this flake should be treated as still open on master; the query-timeout explanation alone does not account for it.
Repro attempt 2 by the automated lnd flake agent, on upstream master f3a71c1 (which includes #11638's 3s/3-retry neutrino query settings). Not reproduced.
Result from the -json subtest events: 19 runs started, 18 passed, 0 failed. The 19th run was still in progress when the package hit the 30m -test.timeout (panic: test timed out after 30m0s). That is the time cap, not this flake: there was no wallet state sync timeout. Each pass took about 36s, so the prescribed 200 runs cannot fit in 30m. Across both attempts, 38 local passes and 0 failures. The flake has appeared on CI 5 times, most recently with #11638 applied (run 46095501217), so it is still open, but it does not show up on this pod. No fix PR without a reproduction.
Activity
hsjoberg commentedon Feb 7, 2024
FWIW, we haven't seen this one in the wild. So probably flake.
litbot-9000 commentedon Nov 25, 2026
New occurrence (automated flake agent): merge_group run https://github.com/lightningnetwork/lnd/actions/runs/45438174642, job https://github.com/lightningnetwork/lnd/actions/runs/45438174642/job/138601839326 (2026-11-24 16:31 UTC).
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balancefailed withwallet state sync timeoutatlnwallet/test/test_interface.go:2268. Same assertion/signature as this issue; the line number on current master is 2268.litbot-9000 commentedon Nov 25, 2026
New occurrence (automated flake agent): merge_group run https://github.com/lightningnetwork/lnd/actions/runs/45557331723, job https://github.com/lightningnetwork/lnd/actions/runs/45557331723/job/139012499884 (2026-11-25 05:59 UTC).
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balancefailed withwallet state sync timeoutatlnwallet/test/test_interface.go:2268. Same assertion/signature as this issue.litbot-9000 commentedon Nov 25, 2026
New occurrence (automated flake agent): merge_group run https://github.com/lightningnetwork/lnd/actions/runs/45629661915, job https://github.com/lightningnetwork/lnd/actions/runs/45629661915/job/139261558435 (queued for PR #11094, 2026-11-25 14:02 UTC).
lnwallet/test/neutrino TestLightningWallet/btcwallet/neutrino:reorg_wallet_balancefailed withwallet state sync timeout at height=870 hash=600b09d99887655f6f18f1becb80c41e0b87c60d3464310ca564ebd8dcd18bd5atlnwallet/test/test_interface.go:2268. Same assertion/signature as this issue.litbot-9000 commentedon Nov 25, 2026
Fix attempt (no reproduction). Branch
flake/neutrino-reorg-wallet-balancefrom upstream/master0cc5feb086eb4b03de0fc543279e8a824555eaf5.Preflight:
GOMAXPROCS=2 go test -race -tags="dev test_db_postgres autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc switchrpc walletrpc watchtowerrpc nolog" -run 'TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance' -count=1 -p 1 -parallel 2 ./lnwallet/test/neutrinoResult: pass, 97.128s.
Prescribed run:
GOMAXPROCS=2 go test -race -test.timeout=30m -tags="dev test_db_postgres autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc switchrpc walletrpc watchtowerrpc nolog" -run 'TestLightningWallet/btcwallet/neutrino:reorg_wallet_balance' -count=200 -p 1 -parallel 2 ./lnwallet/test/neutrinoResult: 20 completed subtest runs / 20 passes / 0 subtest failures, then the package hit the global 30m test timeout (
panic: test timed out after 30m0s). At ~26s per run, 200 iterations cannot fit in the 30m window; nowallet state sync timeoutreproduced locally.litbot-9000 commentedon Nov 26, 2026
Flake cop note: the three recent merge_queue occurrences of this failure mode (runs 45438174642, 45557331723, 45629661915 — all
TestLightningWallet/btcwallet/neutrino:reorg_wallet_balancetiming out inwaitForWalletSyncafter the miner reorg) are addressed by open PR #11638 (lnwallet/test: neutrino filter queries under load— the test'sneutrino.QueryTimeoutof 500ms with a single retry against one on-demand filter peer stalls the synced stamp; raised to 3s with 3 retries).No new occurrences since 2026-11-25. My local
-count=200reproduction attempt on 2026-11-25 did not fail within the prescribed 30-minute window (20 completed runs, 20 passes, then the global timeout), so I could not independently verify the fix — leaving verification to CI on that PR.litbot-9000 commentedon Nov 30, 2026
New occurrence of
lnwallet/test/neutrinoTestLightningWallet/btcwallet/neutrino:reorg_wallet_balance(posted by the automated lnd flake agent).unit tags="kvdb_etcd")test_interface.go:2268)itest/lnd_psbt_test.go.litbot-9000 commentedon Nov 30, 2026
New occurrence of
lnwallet/test/neutrinoTestLightningWallet/btcwallet/neutrino:reorg_wallet_balance(posted by the automated lnd flake agent).unit tags="test_db_postgres")test_interface.go:2268)This merge-queue run was testing #11638 itself, which raised the test's
neutrino.QueryTimeoutto 3s andQueryNumRetriesto 3. The stall still happened with that change in place. #11638 has since merged (f3a71c1), so this flake should be treated as still open on master; the query-timeout explanation alone does not account for it.litbot-9000 commentedon Nov 30, 2026
Repro attempt 2 by the automated lnd flake agent, on upstream master f3a71c1 (which includes #11638's 3s/3-retry neutrino query settings). Not reproduced.
Result from the
-jsonsubtest events: 19 runs started, 18 passed, 0 failed. The 19th run was still in progress when the package hit the 30m-test.timeout(panic: test timed out after 30m0s). That is the time cap, not this flake: there was nowallet state sync timeout. Each pass took about 36s, so the prescribed 200 runs cannot fit in 30m. Across both attempts, 38 local passes and 0 failures. The flake has appeared on CI 5 times, most recently with #11638 applied (run 46095501217), so it is still open, but it does not show up on this pod. No fix PR without a reproduction.