diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-01-19 18:48:14 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-01-19 18:48:23 +0100 |
commit | 6074790867eb187f4c4de96cb6266fa541dc18ae (patch) | |
tree | edd5187756f93678766692f4301d7541f68402cc /src/exchangedb | |
parent | c1dc7cc28bd87f282825944b33a986fd96c5e3c2 (diff) | |
download | exchange-6074790867eb187f4c4de96cb6266fa541dc18ae.tar.xz |
config syntax for accounts
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/exchangedb_accounts.c | 7 | ||||
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 12 |
2 files changed, 8 insertions, 11 deletions
diff --git a/src/exchangedb/exchangedb_accounts.c b/src/exchangedb/exchangedb_accounts.c index fa45fd81f..fd8ed5381 100644 --- a/src/exchangedb/exchangedb_accounts.c +++ b/src/exchangedb/exchangedb_accounts.c @@ -50,9 +50,6 @@ struct FindAccountContext * true, call the callback from the context with the * rest of the section name. * - * FIXME(dold): This comment is inaccurate! Also, why - * is the prefix "account-" and not "exchange-account-"? - * * @param cls our `struct FindEnabledWireContext` * @param section name of a section in the configuration */ @@ -67,8 +64,8 @@ check_for_account (void *cls, struct TALER_EXCHANGEDB_AccountInfo ai; if (0 != strncasecmp (section, - "account-", - strlen ("account-"))) + "exchange-account-", + strlen ("exchange-account-"))) return; if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (ctx->cfg, diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 2a3ab0cbd..2f984e934 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1533,7 +1533,7 @@ run (void *cls) FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != plugin->get_latest_reserve_in_reference (plugin->cls, session, - "account-1", + "exchange-account-1", &rr)); now = GNUNET_TIME_absolute_get (); (void) GNUNET_TIME_round_abs (&now); @@ -1544,12 +1544,12 @@ run (void *cls) &value, now, sndr, - "account-1", + "exchange-account-1", 4)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->get_latest_reserve_in_reference (plugin->cls, session, - "account-1", + "exchange-account-1", &rr)); FAILIF (4 != rr); FAILIF (GNUNET_OK != @@ -1567,17 +1567,17 @@ run (void *cls) &value, now, sndr, - "account-1", + "exchange-account-1", 5)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->get_latest_reserve_in_reference (plugin->cls, session, - "account-1", + "exchange-account-1", &rr)); FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->get_latest_reserve_in_reference (plugin->cls, session, - "account-1", + "exchange-account-1", &rr)); FAILIF (5 != rr); FAILIF (GNUNET_OK != |