Wait for block import in parachain consensus (#271)

* Wait for block import in parachain consensus

There was a bug in the parachain consensus that when importing a relay
chain block that sets a new best parachain block, but the required
parachain block was not yet imported. This pr fixes this by waiting for
the block to be imported.

* Finish docs
This commit is contained in:
Bastian Köcher
2021-01-05 23:14:27 +01:00
committed by GitHub
parent ed8fc4f4a3
commit 9dc7cc5735
14 changed files with 812 additions and 316 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ use sp_std::{cmp, prelude::*};
use cumulus_primitives::{
inherents::{MessageIngestionType, MESSAGE_INGESTION_IDENTIFIER},
well_known_keys, DownwardMessageHandler, HrmpMessageHandler, OutboundHrmpMessage, ParaId,
UpwardMessage, UpwardMessageSender, HrmpMessageSender,
well_known_keys, DownwardMessageHandler, HrmpMessageHandler, HrmpMessageSender,
OutboundHrmpMessage, ParaId, UpwardMessage, UpwardMessageSender,
};
// TODO: these should be not a constant, but sourced from the relay-chain configuration.