Have the machine respond to advances made by an external sync loop

This commit is contained in:
Luke Parker
2022-11-12 05:35:41 -05:00
parent ca3a29f616
commit b53759c6ec
3 changed files with 39 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ impl TestNetwork {
let mut write = arc.write().await;
for i in 0 .. validators {
let i = u16::try_from(i).unwrap();
let TendermintHandle { messages, machine } = TendermintMachine::new(
let TendermintHandle { messages, machine, .. } = TendermintMachine::new(
TestNetwork(i, arc.clone()),
(BlockNumber(1), (SystemTime::now().duration_since(UNIX_EPOCH)).unwrap().as_secs()),
TestBlock { id: 1u32.to_le_bytes(), valid: Ok(()) },