mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 20:11:03 +00:00
6e4d30e8ad
* Decouples light-sync state from chain spec This decouples the light-sync state from chain spec. First, the light-sync state currently only works with BABE+Grandpa, so not all *Substrate* based chains can use this feature. The next problem was also that this pulled the `sc-consensus-babe` and `sc-finality-grandpa` crate into `sc-chain-spec`. If a chain now wants to support the light-sync state, it needs to add the `LightSyncStateExtension` to the chain spec as an extension. This is documented in the crate level docs of `sc-sync-state-rpc`. If this extension is not available, `SyncStateRpc` fails at initialization. * Fix compilation for browser * Fmt
31 lines
1.2 KiB
TOML
31 lines
1.2 KiB
TOML
[package]
|
|
name = "sc-sync-state-rpc"
|
|
version = "0.10.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
description = "A RPC handler to create sync states for light clients."
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.dev"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
thiserror = "1.0.21"
|
|
jsonrpc-core = "15.0"
|
|
jsonrpc-core-client = "15.0"
|
|
jsonrpc-derive = "15.0"
|
|
sc-chain-spec = { version = "4.0.0-dev", path = "../chain-spec" }
|
|
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
|
sc-consensus-babe = { version = "0.10.0-dev", path = "../consensus/babe" }
|
|
sc-consensus-epochs = { version = "0.10.0-dev", path = "../consensus/epochs" }
|
|
sc-finality-grandpa = { version = "0.10.0-dev", path = "../finality-grandpa" }
|
|
sc-rpc-api = { version = "0.10.0-dev", path = "../rpc-api" }
|
|
serde_json = "1.0.58"
|
|
serde = { version = "1.0.126", features = ["derive"] }
|
|
sp-blockchain = { version = "4.0.0-dev", path = "../../primitives/blockchain" }
|
|
sp-runtime = { version = "4.0.0-dev", path = "../../primitives/runtime" }
|
|
codec = { package = "parity-scale-codec", version = "2.0.0" }
|