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
+1 -2
View File
@@ -22,7 +22,6 @@ The Executive module provides functions to:
The Executive module provides the following implementations:
- `ExecuteBlock`: Trait that can be used to execute a block.
- `Executive`: Type that can be used to make the FRAME available from the runtime.
## Usage
@@ -58,4 +57,4 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
pub type Executive = executive::Executive<Runtime, Block, Context, Runtime, AllModules, CustomOnRuntimeUpgrade>;
```
License: Apache-2.0
License: Apache-2.0