-fix test-auditor.sh
This commit is contained in:
parent
67a85e4f5f
commit
c676737f5f
@ -1340,6 +1340,7 @@ refresh_session_cb (void *cls,
|
|||||||
coin_pub,
|
coin_pub,
|
||||||
coin_sig))
|
coin_sig))
|
||||||
{
|
{
|
||||||
|
GNUNET_break_op (0);
|
||||||
TALER_ARL_report (report_bad_sig_losses,
|
TALER_ARL_report (report_bad_sig_losses,
|
||||||
GNUNET_JSON_PACK (
|
GNUNET_JSON_PACK (
|
||||||
GNUNET_JSON_pack_string ("operation",
|
GNUNET_JSON_pack_string ("operation",
|
||||||
@ -1451,11 +1452,12 @@ refresh_session_cb (void *cls,
|
|||||||
&amount_without_fee));
|
&amount_without_fee));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check old coin covers complete expenses (of withdraw operations) */
|
/* check old coin covers complete expenses (of refresh operation) */
|
||||||
if (1 == TALER_amount_cmp (&refresh_cost,
|
if (1 == TALER_amount_cmp (&refresh_cost,
|
||||||
&amount_without_fee))
|
&amount_without_fee))
|
||||||
{
|
{
|
||||||
/* refresh_cost > amount_without_fee, which is bad (exchange lost) */
|
/* refresh_cost > amount_without_fee, which is bad (exchange lost) */
|
||||||
|
GNUNET_break_op (0);
|
||||||
report_amount_arithmetic_inconsistency ("melt (cost)",
|
report_amount_arithmetic_inconsistency ("melt (cost)",
|
||||||
rowid,
|
rowid,
|
||||||
&amount_without_fee, /* 'exchange' */
|
&amount_without_fee, /* 'exchange' */
|
||||||
|
@ -1776,7 +1776,7 @@ fi
|
|||||||
jq -e .emergencies[0] < test-audit-coins.json > /dev/null && exit_fail "Unexpected emergency detected in ordinary run"
|
jq -e .emergencies[0] < test-audit-coins.json > /dev/null && exit_fail "Unexpected emergency detected in ordinary run"
|
||||||
echo "OK"
|
echo "OK"
|
||||||
# Undo
|
# Undo
|
||||||
echo "UPDATE exchange.denominations SET fee_refresh_frac=3000000 WHERE coin_val=1;" | psql -Aqt $DB
|
echo "UPDATE exchange.denominations SET fee_refresh_frac=3000000 WHERE coin_val=10;" | psql -Aqt $DB
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user