mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
Add support for Grandpa warp sync (#2301)
* Add support for Grandpa warp sync * Don't pull the warp sync crate if not full-node
This commit is contained in:
Generated
+225
-171
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,7 @@ sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "mast
|
|||||||
sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sc-consensus-slots = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sc-consensus-slots = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
sc-finality-grandpa-warp-sync = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
|
||||||
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
service = { package = "sc-service", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
service = { package = "sc-service", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
@@ -103,6 +104,7 @@ default = ["db", "full-node"]
|
|||||||
db = ["service/db"]
|
db = ["service/db"]
|
||||||
full-node = [
|
full-node = [
|
||||||
"polkadot-node-core-av-store",
|
"polkadot-node-core-av-store",
|
||||||
|
"sc-finality-grandpa-warp-sync"
|
||||||
]
|
]
|
||||||
|
|
||||||
runtime-benchmarks = [
|
runtime-benchmarks = [
|
||||||
|
|||||||
@@ -589,6 +589,10 @@ pub fn new_full<RuntimeApi, Executor>(
|
|||||||
fn adjust_yamux(_: &mut sc_network::config::NetworkConfiguration) {}
|
fn adjust_yamux(_: &mut sc_network::config::NetworkConfiguration) {}
|
||||||
adjust_yamux(&mut config.network);
|
adjust_yamux(&mut config.network);
|
||||||
|
|
||||||
|
config.network.request_response_protocols.push(sc_finality_grandpa_warp_sync::request_response_config_for_chain(
|
||||||
|
&config, task_manager.spawn_handle(), backend.clone(),
|
||||||
|
));
|
||||||
|
|
||||||
let (network, network_status_sinks, system_rpc_tx, network_starter) =
|
let (network, network_status_sinks, system_rpc_tx, network_starter) =
|
||||||
service::build_network(service::BuildNetworkParams {
|
service::build_network(service::BuildNetworkParams {
|
||||||
config: &config,
|
config: &config,
|
||||||
|
|||||||
Reference in New Issue
Block a user