Include parent head in CandidateReceipt (#826)

* runtime: candidate receipt must pass parent head

* construct parachain candidates using correct parent_head

* validate that the parent header is correct in candidate receipt

* fix test fallout

* bump runtime versions
This commit is contained in:
Robert Habermeier
2020-02-10 10:14:12 +01:00
committed by GitHub
parent 703ac8bbbc
commit 1c2aff5b4d
11 changed files with 86 additions and 20 deletions
@@ -396,10 +396,11 @@ impl<C, N, P, SP> ParachainValidationInstances<C, N, P, SP> where
max_block_data_size,
).await {
Ok(collation_work) => {
let (collation, outgoing_targeted, fees_charged) = collation_work;
let (collation, outgoing_targeted, parent_head, fees_charged) = collation_work;
match crate::collation::produce_receipt_and_chunks(
authorities_num,
parent_head,
&collation.pov,
&outgoing_targeted,
fees_charged,