Misc bug fixes

This commit is contained in:
Luke Parker 2022-10-24 05:52:40 -04:00
parent b5cb8a9be2
commit 05be5c14c3
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
3 changed files with 10 additions and 7 deletions

View file

@ -120,13 +120,13 @@ where
.client
.justifications(&BlockId::Number(best))
.unwrap()
.unwrap()
.get(CONSENSUS_ID)
.unwrap()
.map(|justifications| justifications.get(CONSENSUS_ID).cloned().unwrap())
.unwrap_or_default()
.as_ref(),
)
.unwrap()
.end_time,
.map(|commit| commit.end_time)
// TODO: Genesis start time
.unwrap_or(0),
),
import_clone
.get_proposal(&import_clone.client.header(BlockId::Number(0u8.into())).unwrap().unwrap())

View file

@ -1,4 +1,7 @@
use std::{sync::{Arc, RwLock}, future::Future};
use std::{
sync::{Arc, RwLock},
future::Future,
};
use sp_core::H256;

View file

@ -272,7 +272,7 @@ impl<N: Network + 'static> TendermintMachine<N> {
timeouts: HashMap::new(),
};
machine.round_propose();
machine.round(Round(0));
loop {
// Check if any timeouts have been triggered