mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +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.
28 lines
947 B
TOML
28 lines
947 B
TOML
[package]
|
|
description = "Substrate statement protocol"
|
|
name = "sc-network-statement"
|
|
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-statement"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
array-bytes = "6.1"
|
|
async-channel = "1.8.0"
|
|
codec = { package = "parity-scale-codec", version = "3.6.1", features = ["derive"] }
|
|
futures = "0.3.21"
|
|
libp2p = "0.51.3"
|
|
log = "0.4.17"
|
|
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../../utils/prometheus" }
|
|
sc-network-common = { path = "../common" }
|
|
sc-network-sync = { path = "../sync" }
|
|
sc-network = { path = ".." }
|
|
sp-consensus = { path = "../../../primitives/consensus/common" }
|
|
sp-statement-store = { path = "../../../primitives/statement-store" }
|