Skip to content

Commit ae29527

Browse files
committed
fix: correct logging of rewards in testnet cleanup
- Fixed incorrect variable used in logging uncleaned rewards in `testnet_cleanup_info.py`. - Updated logging format for rewards in `testnet_cleanup.py` to display in ADA.
1 parent b24d59b commit ae29527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cardano_node_tests/testnet_cleanup_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def main() -> int:
4545
location = args.artifacts_base_dir
4646
balance, rewards = testnet_cleanup.addresses_info(cluster_obj=cluster_obj, location=location)
4747
LOGGER.info(f"Uncleaned balance: {balance} Lovelace ({balance / 1_000_000} ADA)")
48-
LOGGER.info(f"Uncleaned rewards: {rewards} Lovelace ({balance / 1_000_000} ADA)")
48+
LOGGER.info(f"Uncleaned rewards: {rewards} Lovelace ({rewards / 1_000_000} ADA)")
4949

5050
return 0
5151

cardano_node_tests/utils/testnet_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def addresses_info(cluster_obj: clusterlib.ClusterLib, location: pl.Path) -> tp.
412412
f_rewards = stake_addr_info.reward_account_balance
413413
if f_rewards:
414414
rewards += f_rewards
415-
LOGGER.info(f"{f_rewards} on '{fpath}'")
415+
LOGGER.info(f"{f_rewards / 1_000_000} ADA on '{fpath}'")
416416
else:
417417
address = clusterlib.read_address_from_file(fpath)
418418
utxos = cluster_obj.g_query.get_utxo(address=address)

0 commit comments

Comments
 (0)