Update to the latest tendermint-machine

This commit is contained in:
Luke Parker 2022-11-13 20:19:19 -05:00
parent 2408fd8500
commit 138866f64d
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
2 changed files with 3 additions and 3 deletions

View file

@ -176,7 +176,7 @@ impl<T: TendermintValidator> TendermintAuthority<T> {
let (gossip_tx, mut gossip_rx) = mpsc::unbounded();
// Create the Tendermint machine
let TendermintHandle { mut messages, machine } = {
let TendermintHandle { mut step, mut messages, machine } = {
// Set this struct as active
*self.import.providers.write().await = Some(providers);
self.active = Some(ActiveAuthority {

View file

@ -15,7 +15,7 @@ use sp_api::{BlockId, ProvideRuntimeApi};
use sc_client_api::HeaderBackend;
use tendermint_machine::ext::{BlockNumber, Round, Weights, Signer, SignatureScheme};
use tendermint_machine::ext::{BlockNumber, RoundNumber, Weights, Signer, SignatureScheme};
use sp_tendermint::TendermintApi;
@ -186,7 +186,7 @@ impl<T: TendermintClient> Weights for TendermintValidators<T> {
}
// TODO
fn proposer(&self, number: BlockNumber, round: Round) -> u16 {
fn proposer(&self, number: BlockNumber, round: RoundNumber) -> u16 {
u16::try_from(
(number.0 + u64::from(round.0)) % u64::try_from(self.0.read().unwrap().lookup.len()).unwrap(),
)