Skip to content

Commit

Permalink
implement new runtime api initialize_pending_block
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Nov 24, 2023
1 parent 0210f10 commit 4f3d9cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/common/src/apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ macro_rules! impl_runtime_apis_plus_common {
pallet_ethereum::CurrentTransactionStatuses::<Runtime>::get()
)
}

fn initialize_pending_block(header: &<Block as BlockT>::Header) {
pallet_randomness::vrf::using_fake_vrf(|| Executive::initialize_block(header))
}
}

impl fp_rpc::ConvertTransactionRuntimeApi<Block> for Runtime {
Expand Down

0 comments on commit 4f3d9cd

Please sign in to comment.