Tests for voting

This commit is contained in:
mjalalzai 2023-03-30 22:35:20 -07:00
commit a50ecac73b

View File

@ -158,11 +158,12 @@ def test_receive_block_has_an_old_qc(self):
# Test cases for vote:
#1: If a nodes votes for same block twice
#2: If a node votes for two different blocks in the same view.
#3: If a node in parent committee votes before it receives threshold of children's votes
#4: If a node counts a single vote twice
#5: If a node votes only for block that are safe
#1: If a node votes for a safe block
#2: If a nodes votes for same block twice
#3: If a node votes for two different blocks in the same view.
#4: If a node in parent committee votes before it receives threshold of children's votes
#5: If a node counts a single vote twice
#6: If a node votes only for block that are safe
def test_vote_for_received_block(self):
carnot = Carnot(int_to_id(0))
genesis_block = self.add_genesis_block(carnot)