Skip to content

Run LDK initialization concurrently - #102

Merged
benthecarman merged 1 commit into
masterfrom
review-issue-101
Aug 19, 2026
Merged

Run LDK initialization concurrently#102
benthecarman merged 1 commit into
masterfrom
review-issue-101

Conversation

@benthecarman

Copy link
Copy Markdown
Collaborator

Closes #101

LDK initialization does not yield while it restores and starts the node, so Spark cannot progress inside the join. Use a separate task to allow both initializers to run concurrently.

Comment thread orange-sdk/src/lib.rs Outdated
let logger = Arc::clone(&logger);
async move {
Ok::<_, InitFailure>(Arc::new(
LightningWallet::init(runtime, config, store, event_queue, tx_metadata, logger)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given LightningWallet::init is already async should the spawn not live there instead of here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

LDK initialization does not yield while it restores and starts the node,
so Spark cannot progress inside the join. Use a separate task to allow
both initializers to run concurrently.
@benthecarman
benthecarman merged commit ff31785 into master Aug 19, 2026
3 of 4 checks passed
@benthecarman
benthecarman deleted the review-issue-101 branch August 19, 2026 20:38
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.

Init is fully sync even in spark join

2 participants