Make ExecuteBlock::execute_block return the final block header (#8244)

This pr changes the `ExecuteBlock` trait to return the final header that
results from executing the given block.
This commit is contained in:
Bastian Köcher
2021-03-03 09:44:34 +01:00
committed by GitHub
parent dc190a69f2
commit 4de4662480
9 changed files with 48 additions and 37 deletions
+2 -2
View File
@@ -615,7 +615,7 @@ cfg_if! {
}
fn execute_block(block: Block) {
system::execute_block(block)
system::execute_block(block);
}
fn initialize_block(header: &<Block as BlockT>::Header) {
@@ -869,7 +869,7 @@ cfg_if! {
}
fn execute_block(block: Block) {
system::execute_block(block)
system::execute_block(block);
}
fn initialize_block(header: &<Block as BlockT>::Header) {