Skip to content

Allow to start Substrate service without RPC server #5559

Open
@nazar-pc

Description

@nazar-pc

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I5-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions