aura: remove stale check to skip execution (#13074)

This commit is contained in:
André Silva
2023-01-05 15:19:24 +00:00
committed by GitHub
parent 3a68a7818b
commit 37e137e57d
@@ -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(),