Skip to content

Commit

Permalink
fix(clusterlib_utils): handle witness_override condition
Browse files Browse the repository at this point in the history
Ensure witness_override is only set when witness_count_add is greater
than 0. This prevents unnecessary overrides and maintains expected
behavior.
  • Loading branch information
mkoura committed Nov 25, 2024
1 parent 0b1b121 commit f2db4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardano_node_tests/utils/clusterlib_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f2db4c9

Please sign in to comment.