Skip to content

Conversation

@YusukeShimizu
Copy link
Contributor

@YusukeShimizu YusukeShimizu commented Jul 28, 2025

Fixes flaky test failures in Test_Recover_PassedSwap_BTC and Test_Recover_PassedSwap_LBTC
Adds block height synchronization after node restart to ensure consistent CSV timeout detection.

Ensure taker node is fully synced with the latest block height before
starting recovery process. This prevents race conditions where the
recovery might start before the node recognizes it has passed the CSV
timeout, causing flaky test failures.

The issue occurred when the node restarted and immediately began
recovery without being aware of the blocks generated while it was
offline, leading to inconsistent CSV timeout detection.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@YusukeShimizu YusukeShimizu marked this pull request as draft July 28, 2025 21:54
@YusukeShimizu YusukeShimizu marked this pull request as ready for review July 29, 2025 00:56
@YusukeShimizu YusukeShimizu merged commit 4da0e8f into ElementsProject:master Jul 29, 2025
9 checks passed
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.

1 participant