Enable Babe RPC for getting epoch authorship (#1065)

Enable babe_epochAuthorship that was added in substrate#4729 for
querying information about slots that can be claimed in the current
epoch.
This commit is contained in:
Jon Häggblad
2020-05-16 13:46:21 +02:00
committed by GitHub
parent a6f35ee989
commit afb9af4cf0
4 changed files with 129 additions and 16 deletions
+28
View File
@@ -4276,11 +4276,17 @@ dependencies = [
"parity-scale-codec",
"polkadot-primitives",
"sc-client-api",
"sc-consensus-babe",
"sc-consensus-babe-rpc",
"sc-consensus-epochs",
"sc-finality-grandpa",
"sc-finality-grandpa-rpc",
"sc-keystore",
"sc-rpc",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-runtime",
"sp-transaction-pool",
"substrate-frame-rpc-system",
@@ -5536,6 +5542,28 @@ dependencies = [
"substrate-prometheus-endpoint",
]
[[package]]
name = "sc-consensus-babe-rpc"
version = "0.8.0-dev"
source = "git+https://github.com/paritytech/substrate#c0ccc24d02080ab4fbb2c65440327fc72acb6c42"
dependencies = [
"derive_more 0.99.5",
"futures 0.3.4",
"jsonrpc-core",
"jsonrpc-core-client",
"jsonrpc-derive",
"sc-consensus-babe",
"sc-consensus-epochs",
"sc-keystore",
"serde",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-consensus-babe",
"sp-core",
"sp-runtime",
]
[[package]]
name = "sc-consensus-epochs"
version = "0.8.0-alpha.8"