diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-19 19:12:47 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-19 19:12:47 +0100 |
commit | cb58740fbd9805807dba268c65498aaa171f004f (patch) | |
tree | 505e57fc6c9397acd5eb53638afe77e5c51c0361 /src/exchangedb | |
parent | 6074790867eb187f4c4de96cb6266fa541dc18ae (diff) |
remove redundant METHOD option, we can derive it from PAYTO_URI
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/exchangedb_accounts.c | 13 |
1 files changed, 5 insertions, 8 deletions
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; } |