Companion for polkadot#5782 (#1447)

* Make HeadSupportsParachain async

* Update Cargo.lock

* update lockfile for {"substrate", "polkadot"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Sebastian Kunert
2022-07-20 13:03:02 +02:00
committed by GitHub
parent f1b02db6e2
commit 79d663b4e4
2 changed files with 257 additions and 250 deletions
+4 -1
View File
@@ -359,6 +359,7 @@ pub async fn start_collator<Block, RA, BS, Spawner>(
#[cfg(test)]
mod tests {
use super::*;
use async_trait::async_trait;
use cumulus_client_consensus_common::ParachainCandidate;
use cumulus_test_client::{
Client, ClientBlockImportExt, DefaultTestClientBuilderExt, InitBlockBuilder,
@@ -374,8 +375,10 @@ mod tests {
use sp_state_machine::Backend;
struct AlwaysSupportsParachains;
#[async_trait]
impl HeadSupportsParachains for AlwaysSupportsParachains {
fn head_supports_parachains(&self, _head: &PHash) -> bool {
async fn head_supports_parachains(&self, _head: &PHash) -> bool {
true
}
}