diff --git a/polkadot/node/overseer/src/lib.rs b/polkadot/node/overseer/src/lib.rs index 9321fad7a4..36ffe54240 100644 --- a/polkadot/node/overseer/src/lib.rs +++ b/polkadot/node/overseer/src/lib.rs @@ -130,7 +130,13 @@ where { fn head_supports_parachains(&self, head: &Hash) -> bool { let id = BlockId::Hash(*head); - self.runtime_api().has_api::>(&id).unwrap_or(false) + // Check that the `ParachainHost` runtime api is at least with version 1 present on chain. + self.runtime_api() + .api_version::>(&id) + .ok() + .flatten() + .unwrap_or(0) >= + 1 } }