mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-17 19:25:41 +00:00
refactor out validation hosts to pool struct (#972)
* refactor out validation hosts to pool struct * make web-wasm compatible * typo * remove now-unused static hosts
This commit is contained in:
committed by
GitHub
parent
a2a4f4c755
commit
15a83079ba
@@ -59,6 +59,7 @@ pub trait Collators: Clone {
|
||||
|
||||
/// A future which resolves when a collation is available.
|
||||
pub async fn collation_fetch<C: Collators, P>(
|
||||
validation_pool: Option<crate::pipeline::ValidationPool>,
|
||||
parachain: ParaId,
|
||||
relay_parent: Hash,
|
||||
collators: C,
|
||||
@@ -76,6 +77,7 @@ pub async fn collation_fetch<C: Collators, P>(
|
||||
let collation = collators.collate(parachain, relay_parent).await?;
|
||||
let Collation { info, pov } = collation;
|
||||
let res = crate::pipeline::full_output_validation_with_api(
|
||||
validation_pool.as_ref(),
|
||||
&*client,
|
||||
&info,
|
||||
&pov,
|
||||
|
||||
Reference in New Issue
Block a user