Fix multi collator setup (#133)

* Start

* Fix compilation

* Fix chainspec

* Don't set best 2 times for the same block

* Check the status of a block before building on it

* Check that the block exists before setting it as the new best

* Reorder code

* Fork choice depends on sync status

* Switch branch again
This commit is contained in:
Bastian Köcher
2020-07-02 12:50:04 +02:00
committed by GitHub
parent 30ad930159
commit 6ca066c893
8 changed files with 519 additions and 279 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -123,6 +123,7 @@ pub fn run_collator(
proposer_factory,
inherent_data_providers,
block_import,
client.clone(),
id,
client,
announce_block,
@@ -292,7 +292,6 @@ async fn integration_test() {
.unwrap_or(2) as u64;
let tip = 0;
let extra: SignedExtra = (
TransactionCallFilter::<IsCallable, polkadot_runtime::Call>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckTxVersion::<Runtime>::new(),
frame_system::CheckGenesis::<Runtime>::new(),