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
2021-03-03 21:59:28 +01:00
committed by GitHub
parent 0d8a849b84
commit 274e7f0652
3 changed files with 11 additions and 17 deletions
+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)]