Companion for #7339: cleaner GRANDPA RPC API (#2100)

* service: update for substrate PR #7339

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Jon Häggblad
2021-01-21 23:31:16 +01:00
committed by GitHub
parent cfb474cacb
commit 3b69385d85
2 changed files with 144 additions and 141 deletions
+139 -139
View File
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -284,8 +284,11 @@ fn new_partial<RuntimeApi, Executor>(config: &mut Configuration, jaeger_agent: O
let justification_stream = grandpa_link.justification_stream();
let shared_authority_set = grandpa_link.shared_authority_set().clone();
let shared_voter_state = grandpa::SharedVoterState::empty();
let finality_proof_provider =
GrandpaFinalityProofProvider::new_for_service(backend.clone(), client.clone());
let finality_proof_provider = GrandpaFinalityProofProvider::new_for_service(
backend.clone(),
client.clone(),
Some(shared_authority_set.clone()),
);
let import_setup = (block_import.clone(), grandpa_link, babe_link.clone());
let rpc_setup = shared_voter_state.clone();