Skip to content

Commit

Permalink
fix(sumeragi): keep voting block if wrong message is received
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <shanin1000@yandex.ru>
  • Loading branch information
Erigara committed Sep 3, 2024
1 parent 80d8a25 commit 91879da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/sumeragi/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ impl Sumeragi {
?actual_hash,
"Block hash mismatch"
);
*voting_block = Some(voted_block);
} else if let Err(err) =
voted_block.block.add_signature(signature, &self.topology)
{
Expand All @@ -689,6 +690,7 @@ impl Sumeragi {
?err,
"Signature not valid"
);
*voting_block = Some(voted_block);
} else {
*voting_block =
self.try_commit_block(voted_block, is_genesis_peer);
Expand Down

0 comments on commit 91879da

Please sign in to comment.