diff --git a/substrate/tendermint/client/src/validators.rs b/substrate/tendermint/client/src/validators.rs index 9a198390..58fdde28 100644 --- a/substrate/tendermint/client/src/validators.rs +++ b/substrate/tendermint/client/src/validators.rs @@ -1,6 +1,8 @@ use core::{marker::PhantomData, ops::Deref}; use std::sync::{Arc, RwLock}; +use async_trait::async_trait; + use sp_application_crypto::{ RuntimePublic as PublicTrait, Pair as PairTrait, sr25519::{Public, Pair, Signature}, @@ -92,12 +94,13 @@ impl TendermintValidators { } } +#[async_trait] impl SignatureScheme for TendermintValidators { type ValidatorId = u16; type Signature = Signature; type AggregateSignature = Vec; - fn sign(&self, msg: &[u8]) -> Signature { + async fn sign(&self, msg: &[u8]) -> Signature { self.0.read().unwrap().keys.sign(msg) }