merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit f615db25595b1b39a1d129f698338a67894fe5b0
parent 87a0cfc812c9769d2e1266056feded0b2274fc36
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  5 Jul 2026 23:50:30 +0200

check that max_fee is in the same currency as the contract total

Diffstat:
Msrc/util/contract_choice_parse.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/util/contract_choice_parse.c b/src/util/contract_choice_parse.c @@ -377,6 +377,16 @@ parse_contract_choices ( GNUNET_break_op (0); return GNUNET_SYSERR; } + if (GNUNET_OK != + TALER_amount_cmp_currency (&choice->amount, + &choice->max_fee)) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Fee currency does not match amount currency in choice #%u\n", + i); + GNUNET_break_op (0); + return GNUNET_SYSERR; + } if (NULL != jinputs) {