mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +00:00
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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user