Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for 2 new blocks before committee-state query #2408

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading