Commit 5f248e9b authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

rpc: Implement `chainSpec` RPC API (#12261)



* rpc/chain_spec: Add traits for `chainSpec` API

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* rpc/chain_spec: Implement `chainSpec` RPC methods

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* rpc/chain_spec: Add tests

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* bin/node: Enable `chainSpec` API

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* rpc/chain_spec: Assume `genesis_hash` as non-empty

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* Update client/rpc-spec/Cargo.toml

Co-authored-by: default avatarNiklas Adolfsson <[email protected]>

* Update client/rpc-spec/src/lib.rs

Co-authored-by: default avatarNiklas Adolfsson <[email protected]>

* client/rpc_spec: Rename crate to `rpc_spec_v2`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* rpc-servers: Remove the `version` field from `rpc_methods`

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

* rpc/chain_spec: Fix copyright years

Signed-off-by: default avatarAlexandru Vasile <[email protected]>

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
parent ea1c8bd2
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