grandpa: observer doesn't send catch up messages (#3460)

* grandpa: don't send catch up requests when running GRANDPA observer

* grandpa: fix tests

* grandpa: add tests for catch up requests
This commit is contained in:
André Silva
2019-08-23 15:13:01 +02:00
committed by Robert Habermeier
parent 94243e66b3
commit 725aa0aec8
6 changed files with 133 additions and 10 deletions
@@ -524,6 +524,7 @@ pub fn run_grandpa_voter<B, E, Block: BlockT<Hash=H256>, N, RA, SC, X>(
config.clone(),
persistent_data.set_state.clone(),
on_exit.clone(),
true,
);
register_finality_tracker_inherent_data_provider(client.clone(), &inherent_data_providers)?;