Unverified Commit 105b9f7b authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by GitHub
Browse files

Update for warp sync (#3564)

* Update for warp sync

* update Substrate

Co-authored-by: parity-processbot <>
parent 054404b7
Pipeline #161018 passed with stages
in 39 minutes and 45 seconds
This diff is collapsed.
......@@ -96,6 +96,7 @@ impl HeaderBackend<Block> for TestClient {
finalized_number,
number_leaves: 0,
finalized_state: None,
block_gap: None,
}
}
fn number(&self, hash: Hash) -> sp_blockchain::Result<Option<BlockNumber>> {
......
......@@ -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) =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment