Make collator generate the correct block data

This commit is contained in:
Bastian Köcher
2019-10-19 15:45:02 +02:00
parent b5bc9a21a3
commit 463b9f35b8
5 changed files with 145 additions and 121 deletions
+7 -1
View File
@@ -41,6 +41,7 @@ pub struct ParachainBlockData<B: BlockT> {
extrinsics: Vec<<B as BlockT>::Extrinsic>,
/// The data that is required to emulate the storage accesses executed by all extrinsics.
witness_data: WitnessData,
/// The storage root of the witness data.
witness_data_storage_root: <B as BlockT>::Hash,
}
@@ -58,4 +59,9 @@ impl<B: BlockT> ParachainBlockData<B> {
witness_data_storage_root,
}
}
}
/// Convert `self` into the stored header.
pub fn into_header(self) -> B::Header {
self.header
}
}