Move code from sc-network-common back to sc-network (#13592)

* Move service tests to `client/network/tests`

These tests depend on `sc-network` and `sc-network-sync` so they should
live outside the crate.

* Move some configs from `sc-network-common` to `sc-network`

* Move `NetworkService` traits to `sc-network`

* Move request-responses to `sc-network`

* Remove more stuff

* Remove rest of configs from `sc-network-common` to `sc-network`

* Remove more stuff

* Fix warnings

* Update client/network/src/request_responses.rs

Co-authored-by: Dmitry Markin <dmitry@markin.tech>

* Fix cargo doc

---------

Co-authored-by: Dmitry Markin <dmitry@markin.tech>
This commit is contained in:
Aaro Altonen
2023-03-14 14:06:40 +02:00
committed by GitHub
parent 5d718e45c1
commit 9ced14e2de
85 changed files with 1411 additions and 1434 deletions
+10 -2
View File
@@ -8101,6 +8101,7 @@ dependencies = [
"quickcheck",
"rand 0.8.5",
"sc-client-api",
"sc-network",
"sc-network-common",
"sp-api",
"sp-authority-discovery",
@@ -8163,7 +8164,7 @@ dependencies = [
"sc-chain-spec-derive",
"sc-client-api",
"sc-executor",
"sc-network-common",
"sc-network",
"sc-telemetry",
"serde",
"serde_json",
@@ -8751,6 +8752,7 @@ dependencies = [
"futures-timer",
"log",
"sc-client-api",
"sc-network",
"sc-network-common",
"sp-blockchain",
"sp-runtime",
@@ -8787,6 +8789,7 @@ dependencies = [
"futures-timer",
"ip_network",
"libp2p",
"linked_hash_set",
"log",
"lru",
"mockall",
@@ -8838,6 +8841,7 @@ dependencies = [
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-network",
"sc-network-common",
"sp-blockchain",
"sp-consensus",
@@ -8861,7 +8865,6 @@ dependencies = [
"futures",
"futures-timer",
"libp2p",
"linked_hash_set",
"parity-scale-codec",
"prost-build",
"sc-consensus",
@@ -8890,6 +8893,7 @@ dependencies = [
"log",
"lru",
"quickcheck",
"sc-network",
"sc-network-common",
"sc-peerset",
"sp-runtime",
@@ -8911,6 +8915,7 @@ dependencies = [
"prost",
"prost-build",
"sc-client-api",
"sc-network",
"sc-network-common",
"sc-peerset",
"sp-blockchain",
@@ -8939,6 +8944,7 @@ dependencies = [
"sc-block-builder",
"sc-client-api",
"sc-consensus",
"sc-network",
"sc-network-common",
"sc-peerset",
"sc-utils",
@@ -8997,6 +9003,7 @@ dependencies = [
"log",
"parity-scale-codec",
"pin-project",
"sc-network",
"sc-network-common",
"sc-peerset",
"sc-utils",
@@ -9026,6 +9033,7 @@ dependencies = [
"sc-block-builder",
"sc-client-api",
"sc-client-db",
"sc-network",
"sc-network-common",
"sc-peerset",
"sc-transaction-pool",