From f323d9b49aedb5656e538d46e51ffd91a1fc0440 Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Thu, 21 Nov 2024 11:07:35 +0100 Subject: [PATCH] feat: add UTxO defragmentation to testnet cleanup Add defragmentation step to cleanup function to defragment faucet address UTxOs. --- cardano_node_tests/utils/testnet_cleanup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cardano_node_tests/utils/testnet_cleanup.py b/cardano_node_tests/utils/testnet_cleanup.py index 14451edb9..d0e72bbe5 100644 --- a/cardano_node_tests/utils/testnet_cleanup.py +++ b/cardano_node_tests/utils/testnet_cleanup.py @@ -16,6 +16,7 @@ from cardano_clusterlib import clusterlib from cardano_node_tests.utils import cluster_nodes +from cardano_node_tests.utils import defragment_utxos LOGGER = logging.getLogger(__name__) @@ -237,3 +238,8 @@ def _run(files: tp.List[pl.Path]) -> None: with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: futures = [executor.submit(_run, f) for f in files_found] concurrent.futures.wait(futures) + + # Defragment faucet address UTxOs + defragment_utxos.defragment( + cluster_obj=cluster_obj, address=faucet_payment.address, skey_file=faucet_payment.skey_file + )