Remove the Future triggering the machine for an async fn

Enables passing data in, such as the network.
This commit is contained in:
Luke Parker
2022-10-30 04:08:33 -04:00
parent 6838d5c922
commit edb2e00db7
7 changed files with 82 additions and 78 deletions

View File

@@ -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>,