Implement usage of the signature scheme

This commit is contained in:
Luke Parker
2022-10-16 10:20:29 -04:00
parent 987aa5189a
commit 329a48c19d
3 changed files with 48 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ use parity_scale_codec::{Encode, Decode};
use tokio::sync::RwLock;
use tendermint_machine::{ext::*, Message, TendermintMachine, TendermintHandle};
use tendermint_machine::{ext::*, SignedMessage, TendermintMachine, TendermintHandle};
type TestValidatorId = u16;
type TestBlockId = u32;
@@ -80,7 +80,7 @@ impl Network for TestNetwork {
Arc::new(TestWeights)
}
async fn broadcast(&mut self, msg: Message<TestValidatorId, Self::Block>) {
async fn broadcast(&mut self, msg: SignedMessage<TestValidatorId, Self::Block, [u8; 32]>) {
for handle in self.1.write().await.iter_mut() {
handle.messages.send(msg.clone()).await.unwrap();
}