Skip to content

Commit

Permalink
feat: add UTxO defragmentation to testnet cleanup
Browse files Browse the repository at this point in the history
Add defragmentation step to cleanup function to defragment faucet address UTxOs.
  • Loading branch information
mkoura committed Nov 21, 2024
1 parent 81380eb commit f323d9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cardano_node_tests/utils/testnet_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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
)

0 comments on commit f323d9b

Please sign in to comment.