create_block

Function create_block 

Source
pub fn create_block<T>(
    header: Header,
    transactions: impl IntoIterator<Item = T>,
) -> Block
Expand description

Helper function to create a new block with Header and Anvil transactions

Note: if the impersonate-tx feature is enabled this will also accept MaybeImpersonatedTransaction.