Skip to content

Commit

Permalink
consensus: check prev_block before generating future committee
Browse files Browse the repository at this point in the history
  • Loading branch information
fed-franz committed Sep 10, 2024
1 parent 8ae3cfc commit 8570305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/src/execution_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ impl<'a, T: Operations + 'static> ExecutionCtx<'a, T> {
// We do it here because we need the IterationCtx
if msg.header.round == self.round_update.round
&& msg.header.iteration > self.iteration
&& msg.header.prev_block_hash == self.round_update.hash()
{
// Generate committees for the iteration
self.iter_ctx.generate_iteration_committees(
Expand Down

0 comments on commit 8570305

Please sign in to comment.