Update Substrate to the new TendermintHandle

This commit is contained in:
Luke Parker
2022-11-08 22:51:31 -05:00
parent 1c8192218a
commit f7b1ff9f3b
3 changed files with 23 additions and 19 deletions

View File

@@ -285,7 +285,7 @@ impl<N: Network + 'static> TendermintMachine<N> {
let weights = Arc::new(network.weights());
let validator_id = signer.validator_id().await;
// 01-10
TendermintMachine {
let mut machine = TendermintMachine {
network,
signer,
validators,
@@ -317,7 +317,9 @@ impl<N: Network + 'static> TendermintMachine<N> {
valid: None,
timeouts: HashMap::new(),
}
};
machine.round(Round(0));
machine
},
}
}