fix tendermint invalid commit (#392)

* fix conflicting commit msg signing vs verifying

* fmt
This commit is contained in:
akildemir 2023-10-10 13:32:04 +03:00 committed by GitHub
parent 30d0bad175
commit 2f45bba2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -481,10 +481,8 @@ impl<N: Network + 'static> TendermintMachine<N> {
}
}
let commit_msg = commit_msg(
self.block.end_time[&self.block.round().number].canonical(),
block.id().as_ref(),
);
let commit_msg =
commit_msg(self.block.end_time[&msg.round].canonical(), block.id().as_ref());
let commit = Commit {
end_time: self.block.end_time[&msg.round].canonical(),
validators: validators.clone(),