Move client consensus parts out of primitives and into client/consensus/api (#9319)

* moved client code out of primitives

* bump ci

* Fixup from merge.

* Removed unused deps thanks to review feedback

* Removing unneeded deps

* updating lock file

* note about rustfmt

* fixed typo to bump ci

* Move lonely CacheKeyId to parent

* cargo fmt

* updating import style

* Update docs/STYLE_GUIDE.md

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>

Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
Squirrel
2021-07-30 14:27:17 +01:00
committed by GitHub
parent 8a44bec2dc
commit df59596ec0
69 changed files with 339 additions and 283 deletions
+25 -3
View File
@@ -4542,6 +4542,7 @@ dependencies = [
"sc-cli",
"sc-client-api",
"sc-client-db",
"sc-consensus",
"sc-executor",
"sc-service",
"sp-api",
@@ -7242,7 +7243,6 @@ dependencies = [
"sc-state-db",
"sp-arithmetic",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-database",
"sp-keyring",
@@ -7260,11 +7260,24 @@ name = "sc-consensus"
version = "0.10.0-dev"
dependencies = [
"async-trait",
"futures 0.3.15",
"futures-timer 3.0.2",
"libp2p",
"log",
"parking_lot 0.11.1",
"sc-client-api",
"serde",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-runtime",
"sp-state-machine",
"sp-test-primitives",
"sp-utils",
"substrate-prometheus-endpoint",
"thiserror",
"wasm-timer",
]
[[package]]
@@ -7281,6 +7294,7 @@ dependencies = [
"parking_lot 0.11.1",
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-consensus-slots",
"sc-executor",
"sc-keystore",
@@ -7331,6 +7345,7 @@ dependencies = [
"retain_mut",
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-consensus-epochs",
"sc-consensus-slots",
"sc-consensus-uncles",
@@ -7422,6 +7437,7 @@ dependencies = [
"parking_lot 0.11.1",
"sc-basic-authorship",
"sc-client-api",
"sc-consensus",
"sc-consensus-babe",
"sc-consensus-epochs",
"sc-transaction-pool",
@@ -7457,6 +7473,7 @@ dependencies = [
"parity-scale-codec",
"parking_lot 0.11.1",
"sc-client-api",
"sc-consensus",
"sp-api",
"sp-block-builder",
"sp-blockchain",
@@ -7479,6 +7496,7 @@ dependencies = [
"log",
"parity-scale-codec",
"sc-client-api",
"sc-consensus",
"sc-telemetry",
"sp-api",
"sp-application-crypto",
@@ -7695,6 +7713,7 @@ dependencies = [
"rand 0.8.3",
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-finality-grandpa",
"sc-network",
"sc-service",
@@ -7797,6 +7816,7 @@ dependencies = [
"rand 0.7.3",
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-peerset",
"serde",
"serde_json",
@@ -7954,6 +7974,7 @@ dependencies = [
"serde_json",
"sp-api",
"sp-blockchain",
"sp-consensus",
"sp-core",
"sp-io",
"sp-keystore",
@@ -8048,6 +8069,7 @@ dependencies = [
"sc-chain-spec",
"sc-client-api",
"sc-client-db",
"sc-consensus",
"sc-executor",
"sc-finality-grandpa",
"sc-informant",
@@ -8110,6 +8132,7 @@ dependencies = [
"sc-block-builder",
"sc-client-api",
"sc-client-db",
"sc-consensus",
"sc-executor",
"sc-light",
"sc-network",
@@ -8847,7 +8870,6 @@ dependencies = [
"async-trait",
"futures 0.3.15",
"futures-timer 3.0.2",
"libp2p",
"log",
"parity-scale-codec",
"parking_lot 0.11.1",
@@ -9768,6 +9790,7 @@ dependencies = [
"sp-api",
"sp-application-crypto",
"sp-block-builder",
"sp-consensus",
"sp-consensus-aura",
"sp-consensus-babe",
"sp-core",
@@ -10024,7 +10047,6 @@ dependencies = [
"sc-network",
"sc-service",
"sp-api",
"sp-consensus",
"sp-consensus-babe",
"sp-inherents",
"sp-keyring",