Skip to content

Commit

Permalink
Merge pull request #2408 from IntersectMBO/committee_state_wait
Browse files Browse the repository at this point in the history
Wait for 2 new blocks before `committee-state` query
  • Loading branch information
mkoura authored May 3, 2024
2 parents a335cd6 + 36bbcdb commit 3567220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano_node_tests/tests/tests_conway/test_committee.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def test_register_and_resign_committee_member(
== clusterlib.calculate_utxos_balance(tx_output_auth.txins) - tx_output_auth.fee
), f"Incorrect balance for source address `{payment_addr_comm.address}`"

cluster.wait_for_new_block(new_blocks=2)
_url = helpers.get_vcs_link()
[r.start(url=_url) for r in (reqc.cli032, reqc.cip002, reqc.cip004)]
auth_committee_state = cluster.g_conway_governance.query.committee_state()
Expand Down Expand Up @@ -447,6 +448,7 @@ def _auth_hot_keys() -> None:
== clusterlib.calculate_utxos_balance(tx_output_auth.txins) - tx_output_auth.fee
), f"Incorrect balance for source address `{pool_user_lg.payment.address}`"

cluster.wait_for_new_block(new_blocks=2)
auth_committee_state = cluster.g_conway_governance.query.committee_state()
_cur_epoch = cluster.g_query.get_epoch()
conway_common.save_committee_state(
Expand Down
1 change: 1 addition & 0 deletions cardano_node_tests/utils/governance_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ def auth_cc_members(
== clusterlib.calculate_utxos_balance(tx_output.txins) - tx_output.fee
), f"Incorrect balance for source address `{payment_addr.address}`"

cluster_obj.wait_for_new_block(new_blocks=2)
reg_committee_state = cluster_obj.g_conway_governance.query.committee_state()
member_key = f"keyHash-{cc_members[0].cold_vkey_hash}"
assert (
Expand Down

0 comments on commit 3567220

Please sign in to comment.