Implement block import

This commit is contained in:
Bastian Köcher
2019-10-22 15:26:11 +02:00
parent 649f1b9a10
commit 074e9e7de6
3 changed files with 98 additions and 20 deletions
+10
View File
@@ -64,4 +64,14 @@ impl<B: BlockT> ParachainBlockData<B> {
pub fn into_header(self) -> B::Header {
self.header
}
/// Returns the header.
pub fn header(&self) -> &B::Header {
&self.header
}
/// Returns the extrinsics.
pub fn extrinsics(&self) -> &[B::Extrinsic] {
&self.extrinsics
}
}