Skip to content

fix: wait for wallet scan completion before balance assertions - #199

Open
schell wants to merge 1 commit into
mainfrom
fix/wallet-scan-lag
Open

fix: wait for wallet scan completion before balance assertions#199
schell wants to merge 1 commit into
mainfrom
fix/wallet-scan-lag

Conversation

@schell

@schell schell commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Closes #198.

wait_for_wallet_sync now checks getwalletstatus.fully_synced_height (the height the wallet has actually scanned to), not just wallet_tip. The transparent balance summary (z_gettotalbalance, z_listtransactions) lags one block behind the wallet tip, so assertions now expect tip - 1 coinbases with polling instead of a tolerance range of 5.

@schell
schell force-pushed the fix/wallet-scan-lag branch from 8cfefda to 5215f53 Compare August 28, 2026 03:28
wait_for_wallet_sync now checks fully_synced_height from getwalletstatus,
not just wallet_tip. The transparent balance summary (z_gettotalbalance,
z_listtransactions) lags one block behind the wallet tip, so assertions
now expect tip - 1 coinbases instead of a tolerance range of 5.

Adds timing logs to wait_for_total_balance so convergence patterns are
visible in CI output. Timeouts bumped to 600s to diagnose slow CI.

Closes #198.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wallet.py transparent-balance assertion fails on 9+ consecutive main runs (scan-lag race)

1 participant