aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-19 19:12:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-19 19:12:47 +0100
commitcb58740fbd9805807dba268c65498aaa171f004f (patch)
tree505e57fc6c9397acd5eb53638afe77e5c51c0361 /src/exchangedb
parent6074790867eb187f4c4de96cb6266fa541dc18ae (diff)
remove redundant METHOD option, we can derive it from PAYTO_URI
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/exchangedb_accounts.c13
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;
}