Network sync refactoring (part 7) (#12006)

* Move `MultiaddrWithPeerId` and related parsing functions into `sc-network-common`, remove dependency on `sc-network` from `sc-chain-spec`

* Remove dependency on `sc-network` from `sc-offchain`

* Remove dependency on `sc-network` from `sc-network-gossip`
This commit is contained in:
Nazar Mokrynskyi
2022-08-22 18:53:14 +03:00
committed by GitHub
parent c930cd0d79
commit b20f83c18f
23 changed files with 173 additions and 165 deletions
+6 -4
View File
@@ -7730,7 +7730,6 @@ dependencies = [
"quickcheck",
"rand 0.7.3",
"sc-client-api",
"sc-network",
"sc-network-common",
"sp-api",
"sp-authority-discovery",
@@ -7793,7 +7792,7 @@ dependencies = [
"memmap2 0.5.0",
"parity-scale-codec",
"sc-chain-spec-derive",
"sc-network",
"sc-network-common",
"sc-telemetry",
"serde",
"serde_json",
@@ -8426,6 +8425,7 @@ dependencies = [
"prost-build",
"sc-consensus",
"sc-peerset",
"serde",
"smallvec",
"sp-consensus",
"sp-finality-grandpa",
@@ -8445,8 +8445,8 @@ dependencies = [
"log",
"lru",
"quickcheck",
"sc-network",
"sc-network-common",
"sc-peerset",
"sp-runtime",
"substrate-prometheus-endpoint",
"substrate-test-runtime-client",
@@ -8547,6 +8547,7 @@ dependencies = [
"hyper",
"hyper-rustls",
"lazy_static",
"libp2p",
"num_cpus",
"once_cell",
"parity-scale-codec",
@@ -8555,8 +8556,8 @@ dependencies = [
"sc-block-builder",
"sc-client-api",
"sc-client-db",
"sc-network",
"sc-network-common",
"sc-peerset",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sc-utils",
@@ -8610,6 +8611,7 @@ dependencies = [
"sc-chain-spec",
"sc-client-api",
"sc-network",
"sc-network-common",
"sc-rpc-api",
"sc-tracing",
"sc-transaction-pool",