mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 23:01:01 +00:00
Update for warp sync (#3564)
* Update for warp sync * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -788,9 +788,16 @@ where
|
||||
let (dispute_req_receiver, cfg) = IncomingRequest::get_config_receiver();
|
||||
config.network.request_response_protocols.push(cfg);
|
||||
|
||||
let grandpa_hard_forks = if config.chain_spec.is_kusama() {
|
||||
grandpa_support::kusama_hard_forks()
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
|
||||
let warp_sync = Arc::new(grandpa::warp_proof::NetworkProvider::new(
|
||||
backend.clone(),
|
||||
import_setup.1.shared_authority_set().clone(),
|
||||
grandpa_hard_forks,
|
||||
));
|
||||
|
||||
let (network, system_rpc_tx, network_starter) =
|
||||
|
||||
Reference in New Issue
Block a user