check currency matches before proceeding

This commit is contained in:
Christian Grothoff 2023-02-19 12:32:41 +01:00
parent b414183283
commit 0fe0c414e2
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1884,6 +1884,13 @@ exchange_serve_process_config (void)
"Need amount in section `TALER' under `AML_THRESHOLD'\n"); "Need amount in section `TALER' under `AML_THRESHOLD'\n");
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
if (0 != strcmp (TEH_currency,
TEH_aml_threshold.currency))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Amount in section `TALER' under `AML_THRESHOLD' uses the wrong currency!\n");
return GNUNET_SYSERR;
}
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (TEH_cfg, GNUNET_CONFIGURATION_get_value_string (TEH_cfg,
"exchange", "exchange",