From cb58740fbd9805807dba268c65498aaa171f004f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 19 Jan 2020 19:12:47 +0100 Subject: remove redundant METHOD option, we can derive it from PAYTO_URI --- src/exchangedb/exchangedb_accounts.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/exchangedb_accounts.c b/src/exchangedb/exchangedb_accounts.c index fd8ed5381..532e27f63 100644 --- a/src/exchangedb/exchangedb_accounts.c +++ b/src/exchangedb/exchangedb_accounts.c @@ -78,15 +78,12 @@ check_for_account (void *cls, "PAYTO_URI"); return; } - if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (ctx->cfg, - section, - "METHOD", - &method)) + method = TALER_payto_get_method (payto_uri); + if (NULL == method) { - GNUNET_log_config_missing (GNUNET_ERROR_TYPE_WARNING, - section, - "METHOD"); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "payto URI in config ([%s]/PAYTO_URI) malformed\n", + section); GNUNET_free (payto_uri); return; } -- cgit v1.2.3