mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
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:
Generated
+253
-249
File diff suppressed because it is too large
Load Diff
@@ -359,6 +359,7 @@ pub async fn start_collator<Block, RA, BS, Spawner>(
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
use async_trait::async_trait;
|
||||||
use cumulus_client_consensus_common::ParachainCandidate;
|
use cumulus_client_consensus_common::ParachainCandidate;
|
||||||
use cumulus_test_client::{
|
use cumulus_test_client::{
|
||||||
Client, ClientBlockImportExt, DefaultTestClientBuilderExt, InitBlockBuilder,
|
Client, ClientBlockImportExt, DefaultTestClientBuilderExt, InitBlockBuilder,
|
||||||
@@ -374,8 +375,10 @@ mod tests {
|
|||||||
use sp_state_machine::Backend;
|
use sp_state_machine::Backend;
|
||||||
|
|
||||||
struct AlwaysSupportsParachains;
|
struct AlwaysSupportsParachains;
|
||||||
|
|
||||||
|
#[async_trait]
|
||||||
impl HeadSupportsParachains for AlwaysSupportsParachains {
|
impl HeadSupportsParachains for AlwaysSupportsParachains {
|
||||||
fn head_supports_parachains(&self, _head: &PHash) -> bool {
|
async fn head_supports_parachains(&self, _head: &PHash) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user