mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
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: Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Primitive crate * Feedback Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
This commit is contained in:
Generated
+12
@@ -594,6 +594,7 @@ dependencies = [
|
||||
"ansi_term 0.12.1",
|
||||
"node-cli",
|
||||
"rand 0.7.3",
|
||||
"sc-chain-spec",
|
||||
"sc-keystore",
|
||||
"sp-core",
|
||||
"structopt",
|
||||
@@ -5841,6 +5842,7 @@ dependencies = [
|
||||
"sc-telemetry",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sp-chain-spec",
|
||||
"sp-core",
|
||||
"sp-runtime",
|
||||
]
|
||||
@@ -6539,6 +6541,7 @@ dependencies = [
|
||||
"serde_json",
|
||||
"sp-api",
|
||||
"sp-blockchain",
|
||||
"sp-chain-spec",
|
||||
"sp-core",
|
||||
"sp-io",
|
||||
"sp-offchain",
|
||||
@@ -6568,6 +6571,7 @@ dependencies = [
|
||||
"parking_lot 0.10.0",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sp-chain-spec",
|
||||
"sp-core",
|
||||
"sp-rpc",
|
||||
"sp-runtime",
|
||||
@@ -7267,6 +7271,14 @@ dependencies = [
|
||||
"sp-state-machine",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sp-chain-spec"
|
||||
version = "2.0.0-alpha.5"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sp-consensus"
|
||||
version = "0.8.0-alpha.5"
|
||||
|
||||
Reference in New Issue
Block a user