Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
aura: remove stale check to skip execution (#13074)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored Jan 5, 2023
1 parent 6376f13 commit e4a4436
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/consensus/aura/src/import_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ where

// skip the inherents verification if the runtime API is old or not expected to
// exist.
if !block.state_action.skip_execution_checks() &&
self.client
.runtime_api()
.has_api_with::<dyn BlockBuilderApi<B>, _>(
&BlockId::Hash(parent_hash),
|v| v >= 2,
)
.map_err(|e| e.to_string())?
if self
.client
.runtime_api()
.has_api_with::<dyn BlockBuilderApi<B>, _>(
&BlockId::Hash(parent_hash),
|v| v >= 2,
)
.map_err(|e| e.to_string())?
{
self.check_inherents(
new_block.clone(),
Expand Down

0 comments on commit e4a4436

Please sign in to comment.