diff options
author | ms <ms@taler.net> | 2021-07-02 17:28:41 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2021-07-02 17:28:41 +0200 |
commit | 89f6b08232ba28c1f4883a7e5b615f20134a96ae (patch) | |
tree | 64d5c7dc66723b32e75e3275953fc97173160e52 /buildbot/check_tip_reserve.py | |
parent | fcf08ce9e3f2d8a97b7f2c21959b8fe54f9388f8 (diff) | |
download | deployment-89f6b08232ba28c1f4883a7e5b615f20134a96ae.tar.gz deployment-89f6b08232ba28c1f4883a7e5b615f20134a96ae.tar.bz2 deployment-89f6b08232ba28c1f4883a7e5b615f20134a96ae.zip |
debug
Diffstat (limited to 'buildbot/check_tip_reserve.py')
-rwxr-xr-x | buildbot/check_tip_reserve.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildbot/check_tip_reserve.py b/buildbot/check_tip_reserve.py index 320c614..f12235b 100755 --- a/buildbot/check_tip_reserve.py +++ b/buildbot/check_tip_reserve.py @@ -44,12 +44,16 @@ if len(reserves) == 0: max_amount = Amount(TALER_CONFIG_CURRENCY, 0, 0) for item in reserves[1:]: committed_amount = Amount.parse(item.get("committed_amount")) + print("Committed amount: " + committed_amount) allocated_amount = Amount.parse(item.get("merchant_initial_amount")) + print("Allocated amount: " + allocated_amount) confirmed_amount = Amount.parse(item.get("exchange_initial_amount")) + print("Confirmed amount: " + confirmed_amount) if allocated_amount != confirmed_amount: print("The exchange never confirmed the tip reserve amount!") exit(1) remaining_amount = allocated_amount - committed_amount + print("Remaining amount: " + remaining_amount) if remaining_amount > max_amount: max_amount = remaining_amount |