From 431eac455f2b18ca990f5d03ea9c2f2f4294c532 Mon Sep 17 00:00:00 2001 From: mjalalzai <33738574+MForensic@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:26:30 -0700 Subject: [PATCH] overriding methods and datatypes --- carnot/carnot-vote-aggregation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/carnot/carnot-vote-aggregation.py b/carnot/carnot-vote-aggregation.py index 0c16a2c..b4edecf 100644 --- a/carnot/carnot-vote-aggregation.py +++ b/carnot/carnot-vote-aggregation.py @@ -112,7 +112,7 @@ class Carnot2(Carnot): self.latest_committed_block = latest_committed_block -# The the check for the first block generated after unhappy path is added. +# The check for the first block generated after unhappy path is added. def block_is_safe(self, block: Block) -> bool: if isinstance(block.qc, StandardQc): return block.view_num == block.qc.view() + 1 @@ -178,7 +178,7 @@ class Carnot2(Carnot): # When a QC is formed from 2/3rd of subtree votes, it's forwarded to the parent committee. # If a Type 1 timeout occurs, a QC is built from available votes and QCs and sent to the parent. # Subsequent votes are forwarded to the parent committee members. - if self.overlay.number_of_committees==1: + if self.overlay.is_member_of_root_committee(): recipient = self.overlay.leader(block.view + 1) else: recipient = self.overlay.my_committee(self.id)