Skip to content

Require a multithreaded runtime when setting up the node - #1071

Open
elnosh wants to merge 1 commit into
lightningdevkit:mainfrom
elnosh:runtime-err-check
Open

Require a multithreaded runtime when setting up the node#1071
elnosh wants to merge 1 commit into
lightningdevkit:mainfrom
elnosh:runtime-err-check

Conversation

@elnosh

@elnosh elnosh commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

We already note on Node::start that we require the outer runtime to be of the multithreaded flavor, but we never check it.
Given that this block_in_place panics if called from a current-thread runtime, it seems we should error rather than just silently allow it.

https://docs.rs/tokio/latest/tokio/task/fn.block_in_place.html#panics

We already note on `Node::start` that we require the outer runtime to be
of the multithreaded flavor, but we never check it. We should, as our
synchronous API methods enter the runtime via `block_in_place`, which
panics on current-thread runtimes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ldk-reviews-bot

ldk-reviews-bot commented Aug 27, 2026

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot
ldk-reviews-bot requested a review from tnull August 27, 2026 22:28
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