Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to start Substrate service without RPC server #5559

Open
2 tasks done
nazar-pc opened this issue Sep 3, 2024 · 0 comments
Open
2 tasks done

Allow to start Substrate service without RPC server #5559

nazar-pc opened this issue Sep 3, 2024 · 0 comments
Labels
I5-enhancement An additional feature request.

Comments

@nazar-pc
Copy link
Contributor

nazar-pc commented Sep 3, 2024

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Motivation

We use Substrate as a library, meaning we don't use CLI interface, have custom logger setup, etc.

One of the things that we don't always need is RPC server (for example in a desktop app where we can retrieve all necessary information programmatically instead of via RPC), but right now it is started unconditionally.

Request

Allow to configure service with RPC server not enabled at all. It is already possible with custom spawn_tasks implementation, but requires copy-pasting a bunch of code and nicer API would be appreciated.

Solution

With #5364 configuration now has rpc: RpcConfiguration field, maybe as simply as changing it to rpc: Option<RpcConfiguration>.

cc @niklasad1

Are you willing to help with this request?

Maybe (please elaborate above)

@nazar-pc nazar-pc added the I5-enhancement An additional feature request. label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I5-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

1 participant