Skip to content

feat(utils): add dynamic witness count adjustment #2963

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

Merged
merged 1 commit into from
Mar 27, 2025
Merged
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/utils/testnet_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def return_funds_to_faucet(
txins, skeys = flatten_tx_inputs(tx_inputs=batch)
fund_tx_files = clusterlib.TxFiles(signing_key_files=skeys)
batch_tx_name = f"{tx_name}_batch{batch_num}"
witness_count_add = max(2, len(skeys) // 20)

# Try to return funds; don't mind if there's not enough funds for fees etc.
try:
Expand All @@ -260,6 +261,7 @@ def return_funds_to_faucet(
txins=txins,
txouts=fund_dst,
tx_files=fund_tx_files,
witness_count_add=witness_count_add,
verify_tx=False,
)
except clusterlib.CLIError:
Expand Down
Loading