Skip to content

Commit 03bc526

Browse files
future pparam inclusion
1 parent 9da4ee2 commit 03bc526

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

cardano_node_tests/tests/tests_conway/test_pparam_update.py

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,6 @@ def test_pparam_update( # noqa: C901
278278
cluster, governance_data = cluster_lock_governance_plutus
279279
temp_template = common.get_test_id(cluster)
280280
cost_proposal_file = DATA_DIR / "cost_models_list_185_v2_v3.json"
281-
282-
# Check that no future parameters are scheduled at the start
283-
future_pparams_before = cluster.g_query.get_future_pparams()
284-
LOGGER.info(f"Initial future protocol parameters: {future_pparams_before}")
285-
assert not future_pparams_before, (
286-
"Expected no scheduled future protocol parameters before proposals"
287-
)
288-
289281
db_errors_final = []
290282
is_in_bootstrap = conway_common.is_in_bootstrap(cluster_obj=cluster)
291283

@@ -1223,48 +1215,6 @@ def _check_state(state: dict):
12231215
gov_state=rat_gov_state, action_txid=fin_prop_rec.action_txid
12241216
)
12251217
assert rat_action, "Action not found in ratified actions"
1226-
1227-
# Verify that future protocol parameters are now scheduled
1228-
future_pparams_after = cluster.g_query.get_future_pparams()
1229-
LOGGER.info(
1230-
f"Future protocol parameters after ratification: "
1231-
f"{list(future_pparams_after.keys())[:10]}"
1232-
)
1233-
1234-
assert future_pparams_after, "Expected future protocol parameters after ratification"
1235-
assert isinstance(future_pparams_after, dict), "Future pparams should be a dictionary"
1236-
1237-
future_pparams_after = cluster.g_query.get_future_pparams()
1238-
assert future_pparams_after, "Expected future protocol parameters after ratification"
1239-
1240-
mismatches = []
1241-
1242-
for proposal in fin_prop_rec.proposals:
1243-
param_name = proposal.name
1244-
expected_value = str(proposal.value)
1245-
1246-
# Some proposals (like costModels or empty name fields)
1247-
# might not directly map, so skip them
1248-
1249-
if not param_name:
1250-
LOGGER.debug(f"Skipping unnamed proposal (arg: {proposal.arg})")
1251-
continue
1252-
1253-
actual_value = str(future_pparams_after.get(param_name, ""))
1254-
1255-
if param_name not in future_pparams_after:
1256-
mismatches.append(f"Missing {param_name} in future params")
1257-
elif expected_value != actual_value:
1258-
mismatches.append(
1259-
f"Mismatch for {param_name}: expected {expected_value}, got {actual_value}"
1260-
)
1261-
else:
1262-
LOGGER.info(f"✓ {param_name} correctly scheduled: {actual_value}")
1263-
1264-
assert not mismatches, "Some future protocol parameters did not match:\n" + "\n".join(
1265-
mismatches
1266-
)
1267-
12681218
# Disapprove ratified action, the voting shouldn't have any effect
12691219
conway_common.cast_vote(
12701220
cluster_obj=cluster,

0 commit comments

Comments
 (0)