mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 21:49:26 +00:00
Remove the Future triggering the machine for an async fn
Enables passing data in, such as the network.
This commit is contained in:
@@ -5,10 +5,10 @@ use async_trait::async_trait;
|
||||
use sp_consensus::{Error, CacheKeyId};
|
||||
use sc_consensus::{BlockImportParams, BlockImport, Verifier};
|
||||
|
||||
use crate::{types::TendermintAuthor, tendermint::TendermintImport};
|
||||
use crate::{types::TendermintValidator, tendermint::TendermintImport};
|
||||
|
||||
#[async_trait]
|
||||
impl<T: TendermintAuthor> Verifier<T::Block> for TendermintImport<T>
|
||||
impl<T: TendermintValidator> Verifier<T::Block> for TendermintImport<T>
|
||||
where
|
||||
Arc<T::Client>: BlockImport<T::Block, Transaction = T::BackendTransaction>,
|
||||
<Arc<T::Client> as BlockImport<T::Block>>::Error: Into<Error>,
|
||||
|
||||
Reference in New Issue
Block a user