mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
1cd6acdff3
This PR moves syncing-related code from `sc-network-common` to `sc-network-sync`. Unfortunately, some parts are tightly integrated with networking, so they were left in `sc-network-common` for now: 1. `SyncMode` in `common/src/sync.rs` (used in `NetworkConfiguration`). 2. `BlockAnnouncesHandshake`, `BlockRequest`, `BlockResponse`, etc. in `common/src/sync/message.rs` (used in `src/protocol.rs` and `src/protocol/message.rs`). More substantial refactoring is needed to decouple syncing and networking completely, including getting rid of the hardcoded sync protocol. ## Release notes Move syncing-related code from `sc-network-common` to `sc-network-sync`. Delete `ChainSync` trait as it's never used (the only implementation is accessed directly from `SyncingEngine` and exposes a lot of public methods that are not part of the trait). Some new trait(s) for syncing will likely be introduced as part of Sync 2.0 refactoring to represent syncing strategies.
34 lines
1.0 KiB
TOML
34 lines
1.0 KiB
TOML
[package]
|
|
description = "Gossiping for the Substrate network protocol"
|
|
name = "sc-network-gossip"
|
|
version = "0.10.0-dev"
|
|
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
homepage = "https://substrate.io"
|
|
repository.workspace = true
|
|
documentation = "https://docs.rs/sc-network-gossip"
|
|
readme = "README.md"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
ahash = "0.8.2"
|
|
futures = "0.3.21"
|
|
futures-timer = "3.0.1"
|
|
libp2p = "0.51.3"
|
|
log = "0.4.17"
|
|
schnellru = "0.2.1"
|
|
tracing = "0.1.29"
|
|
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus" }
|
|
sc-network = { path = "../network" }
|
|
sc-network-common = { path = "../network/common" }
|
|
sc-network-sync = { path = "../network/sync" }
|
|
sp-runtime = { path = "../../primitives/runtime" }
|
|
|
|
[dev-dependencies]
|
|
tokio = "1.22.0"
|
|
quickcheck = { version = "1.0.3", default-features = false }
|
|
substrate-test-runtime-client = { path = "../../test-utils/runtime/client" }
|