commit 0e0ecbbdf9488914e3ee27c659cd2f438fea3e70
parent 81771e271ee007dcc45acf5cd2f882204e64221b
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 11 Oct 2026 14:49:07 +0200
check all fields before declaring idempotency
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-httpd_post-management-global-fees.c b/src/exchange/taler-exchange-httpd_post-management-global-fees.c
@@ -126,7 +126,14 @@ add_fee (void *cls,
TALER_amount_is_valid (&fees.history)) &&
(0 ==
TALER_global_fee_set_cmp (&fees,
- &afc->fees)) )
+ &afc->fees)) &&
+ (GNUNET_TIME_relative_cmp (purse_timeout,
+ ==,
+ afc->purse_timeout)) &&
+ (GNUNET_TIME_relative_cmp (history_expiration,
+ ==,
+ afc->history_expiration)) &&
+ (purse_account_limit == afc->purse_account_limit) )
{
/* this will trigger the 'success' response */
return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;