mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Make collator generate the correct block data
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user