Skip to content

Commit

Permalink
aura: remove stale check to skip execution (paritytech#13074)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva authored and ark0f committed Feb 27, 2023
1 parent 8a4d3f4 commit 1402146
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 1402146

Please sign in to comment.