From 85703059b9d74d3fc46332cfe613f18152a00b1d Mon Sep 17 00:00:00 2001 From: Federico Franzoni <8609060+fed-franz@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:57:29 +0200 Subject: [PATCH] consensus: check prev_block before generating future committee --- consensus/src/execution_ctx.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/src/execution_ctx.rs b/consensus/src/execution_ctx.rs index 2c2e73b65a..41da044e29 100644 --- a/consensus/src/execution_ctx.rs +++ b/consensus/src/execution_ctx.rs @@ -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(