Skip to content

Commit

Permalink
Merge pull request #1044 from AntelopeIO/GH-1023-prod-fin-test-1.0
Browse files Browse the repository at this point in the history
[1.0.4] Test fix: Allow for block to not have qc_extension
  • Loading branch information
heifner authored Nov 26, 2024
2 parents 83d4867 + 2895221 commit b2f7ab4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/separate_prod_fin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@
# LIB has advanced, which indicate at least 2 of non-producer finalizers have voted.
block_num = cluster.getNode(1).getIrreversibleBlockNum()
block = cluster.getNode(1).getBlock(block_num)
qc_ext = block["qc_extension"]
Print(f'{qc_ext}')
# "11111" is the representation of a bitset showing which finalizers have voted (we have five total finalizers)
if qc_ext["qc"]["active_policy_sig"]["strong_votes"] == "11111":
break
if "qc_extension" in block:
qc_ext = block["qc_extension"]
Print(f'{qc_ext}')
# "11111" is the representation of a bitset showing which finalizers have voted (we have five total finalizers)
if qc_ext["qc"]["active_policy_sig"]["strong_votes"] == "11111":
break
cluster.getNode(1).waitForLibToAdvance()
i += 1
assert i < 3, "Not all finalizers voted"
Expand Down

0 comments on commit b2f7ab4

Please sign in to comment.