From f2db4c9bcbc22edd0c2d6a5d8a7a2f11ebcf3e21 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Mon, 25 Nov 2024 13:27:11 +0100 Subject: [PATCH] fix(clusterlib_utils): handle witness_override condition Ensure witness_override is only set when witness_count_add is greater than 0. This prevents unnecessary overrides and maintains expected behavior. --- cardano_node_tests/utils/clusterlib_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cardano_node_tests/utils/clusterlib_utils.py b/cardano_node_tests/utils/clusterlib_utils.py index efe3204ea..c7ec48779 100644 --- a/cardano_node_tests/utils/clusterlib_utils.py +++ b/cardano_node_tests/utils/clusterlib_utils.py @@ -96,7 +96,7 @@ def build_and_submit_tx( skip_asset_balancing = True if cli_asset_balancing is None else cli_asset_balancing witness_override = ( len(tx_files.signing_key_files) + witness_count_add - if witness_override is None + if witness_override is None and witness_count_add > 0 else witness_override ) tx_output = cluster_obj.g_transaction.build_tx(