mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-25 08:23:07 +00:00
Tests for voting
This commit is contained in:
commit
a50ecac73b
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user