Skip to content

Add tests for chain source switching#963

Draft
tnull wants to merge 6 commits into
lightningdevkit:mainfrom
tnull:2026-07-chain-source-switch-reorg-test
Draft

Add tests for chain source switching#963
tnull wants to merge 6 commits into
lightningdevkit:mainfrom
tnull:2026-07-chain-source-switch-reorg-test

Conversation

@tnull

@tnull tnull commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

tnull added 6 commits July 3, 2026 10:58
Use available listener ports and tolerate intermediate force-close

balances so the property test exercises reorg behavior instead of

setup timing.

Co-Authored-By: HAL 9000
Wait for the replacement chain to confirm close and sweep outputs

before checking final balances after the reorg.

Co-Authored-By: HAL 9000
Stop all reorg test nodes on helper threads before leaving each

property case so shutdown does not park the Tokio worker.

Co-Authored-By: HAL 9000
Wait for bitcoind to reach the generated height before polling

electrs for the corresponding block header.

Co-Authored-By: HAL 9000
Point rust-lightning dependencies at the Confirm refactor branch so this
branch can exercise the pending LDK API changes.

Keep these compatibility updates separate because the patch is not meant
to land as-is.

Co-Authored-By: HAL 9000
Exercise back-and-forth switching between transaction-based chain
sources and bitcoind after both backends diverge from a shared
tip. This guards the persisted locator data needed to recover from
a stale source-specific tip.

Co-Authored-By: HAL 9000
@ldk-reviews-bot

ldk-reviews-bot commented Jul 3, 2026

Copy link
Copy Markdown

👋 Hi! This PR is now in draft status.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

@tnull tnull marked this pull request as draft July 3, 2026 11:03
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.

2 participants