Skip to content
Snippets Groups Projects
Commit 7cdfaff1 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Add new RPC method to get the chain type (#5576)


* Add new RPC method to get the chain type

This adds a new RPC method to get the chain type of the running chain.
The chain type needs to be specified in the chain spec. This should make
it easier for tools/UI to display extra information without needing to
rely on parsing the chain name.

* Update client/rpc-api/src/system/mod.rs

Co-Authored-By: default avatarTomasz Drwięga <tomusdrw@users.noreply.github.com>

* Primitive crate

* Feedback

Co-authored-by: default avatarTomasz Drwięga <tomusdrw@users.noreply.github.com>
parent 1d2cbfbd
Showing
with 135 additions and 26 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment