mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 15:09:23 +00:00
More misc bug fixes
This commit is contained in:
@@ -367,6 +367,10 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
||||
&mut self,
|
||||
msg: Message<N::ValidatorId, N::Block, <N::SignatureScheme as SignatureScheme>::Signature>,
|
||||
) -> Result<Option<N::Block>, TendermintError<N::ValidatorId>> {
|
||||
if msg.number != self.number {
|
||||
Err(TendermintError::Temporal)?;
|
||||
}
|
||||
|
||||
// Verify the end time and signature if this is a precommit
|
||||
if let Data::Precommit(Some((id, sig))) = &msg.data {
|
||||
if !self.signer.verify(
|
||||
@@ -379,10 +383,6 @@ impl<N: Network + 'static> TendermintMachine<N> {
|
||||
}
|
||||
}
|
||||
|
||||
if msg.number != self.number {
|
||||
Err(TendermintError::Temporal)?;
|
||||
}
|
||||
|
||||
// Only let the proposer propose
|
||||
if matches!(msg.data, Data::Proposal(..)) &&
|
||||
(msg.sender != self.weights.proposer(msg.number, msg.round))
|
||||
|
||||
Reference in New Issue
Block a user