From a34b2ed14e1b51e1aae85607414ddedf837db396 Mon Sep 17 00:00:00 2001 From: mjalalzai <33738574+MForensic@users.noreply.github.com> Date: Wed, 4 Oct 2023 20:37:17 -0700 Subject: [PATCH] propose_block --- carnot/carnot-vote-aggregation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/carnot/carnot-vote-aggregation.py b/carnot/carnot-vote-aggregation.py index 6cb031b..e1d895b 100644 --- a/carnot/carnot-vote-aggregation.py +++ b/carnot/carnot-vote-aggregation.py @@ -418,12 +418,12 @@ class Carnot: first_quorum_item = quorum[0] if isinstance(first_quorum_item, Vote): - # Happy path: Create a QC based on the first vote in the quorum + # Happy path: Create a QC based on votes in the quorum vote = first_quorum_item - assert vote.block in self.safe_blocks, "Vote references an unknown block" + assert vote.block in self.safe_blocks, qc = self.build_qc(vote.view, self.safe_blocks[vote.block], None) elif isinstance(first_quorum_item, NewView): - # Unhappy path: Create a QC based on the first NewView in the quorum + # Unhappy path: Create a QC based on NewView messages in the quorum new_view = first_quorum_item qc = self.build_qc(new_view.view, None, quorum)