mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
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:
@@ -498,10 +498,13 @@ mod tests {
|
||||
let inherent_data = {
|
||||
let mut inherent_data = InherentData::default();
|
||||
inherent_data
|
||||
.put_data(INHERENT_IDENTIFIER, &ValidationDataType {
|
||||
validation_data: vfp.clone(),
|
||||
relay_chain_state: sp_state_machine::StorageProof::empty(),
|
||||
})
|
||||
.put_data(
|
||||
INHERENT_IDENTIFIER,
|
||||
&ValidationDataType {
|
||||
validation_data: vfp.clone(),
|
||||
relay_chain_state: sp_state_machine::StorageProof::empty(),
|
||||
},
|
||||
)
|
||||
.expect("failed to put VFP inherent");
|
||||
inherent_data
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user