mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Misc bug fixes
This commit is contained in:
@@ -120,13 +120,13 @@ where
|
|||||||
.client
|
.client
|
||||||
.justifications(&BlockId::Number(best))
|
.justifications(&BlockId::Number(best))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.unwrap()
|
.map(|justifications| justifications.get(CONSENSUS_ID).cloned().unwrap())
|
||||||
.get(CONSENSUS_ID)
|
.unwrap_or_default()
|
||||||
.unwrap()
|
|
||||||
.as_ref(),
|
.as_ref(),
|
||||||
)
|
)
|
||||||
.unwrap()
|
.map(|commit| commit.end_time)
|
||||||
.end_time,
|
// TODO: Genesis start time
|
||||||
|
.unwrap_or(0),
|
||||||
),
|
),
|
||||||
import_clone
|
import_clone
|
||||||
.get_proposal(&import_clone.client.header(BlockId::Number(0u8.into())).unwrap().unwrap())
|
.get_proposal(&import_clone.client.header(BlockId::Number(0u8.into())).unwrap().unwrap())
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
use std::{sync::{Arc, RwLock}, future::Future};
|
use std::{
|
||||||
|
sync::{Arc, RwLock},
|
||||||
|
future::Future,
|
||||||
|
};
|
||||||
|
|
||||||
use sp_core::H256;
|
use sp_core::H256;
|
||||||
|
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
|||||||
|
|
||||||
timeouts: HashMap::new(),
|
timeouts: HashMap::new(),
|
||||||
};
|
};
|
||||||
machine.round_propose();
|
machine.round(Round(0));
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
// Check if any timeouts have been triggered
|
// Check if any timeouts have been triggered
|
||||||
|
|||||||
Reference in New Issue
Block a user