Do not return the Header from execute_block (#8256)

That was actually a bad idea by me, because it should essentially be the
same as block.header.

Ty @kianenigma
This commit is contained in:
Bastian Köcher authored and GitHub committed 2021-03-03 21:59:28 +01:00
1 parent 0d8a849b84
commit 274e7f0652
3 files changed
+11 -17

No files matched your search

+1 -3
View File
@@ -2237,12 +2237,10 @@ pub trait ExecuteBlock<Block: BlockT> {
///
/// This will execute all extrinsics in the block and check that the resulting header is correct.
///
/// Returns the result header.
///
/// # Panic
///
/// Panics when an extrinsics panics or the resulting header doesn't match the expected header.
fn execute_block(block: Block) -> Block::Header;
fn execute_block(block: Block);
}
#[cfg(test)]