diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-17 13:04:37 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-17 13:04:37 +0100 |
commit | b74612fc3362e64dcfb7eacad3602025ccfcf5ea (patch) | |
tree | b823ca6aa32f2e9ef5d5b191ab01c36e9a807d5b /src/auditordb/test_auditordb.c | |
parent | ff27037d42625084a0b1fadea073389b530776c4 (diff) | |
download | exchange-b74612fc3362e64dcfb7eacad3602025ccfcf5ea.tar.gz exchange-b74612fc3362e64dcfb7eacad3602025ccfcf5ea.tar.bz2 exchange-b74612fc3362e64dcfb7eacad3602025ccfcf5ea.zip |
update auditordb and test logic to work with new key separation logic (#6175)
Diffstat (limited to 'src/auditordb/test_auditordb.c')
-rw-r--r-- | src/auditordb/test_auditordb.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c index 201d61b8..69328ee4 100644 --- a/src/auditordb/test_auditordb.c +++ b/src/auditordb/test_auditordb.c @@ -64,25 +64,6 @@ static int result = -1; static struct TALER_AUDITORDB_Plugin *plugin; -static int -select_denomination_info_result (void *cls, - const struct - TALER_DenominationKeyValidityPS *issue2) -{ - const struct TALER_DenominationKeyValidityPS *issue1 = cls; - - if (0 != GNUNET_memcmp (issue1, - issue2)) - { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "select_denomination_info_result: issue does not match\n"); - GNUNET_break (0); - return GNUNET_SYSERR; - } - return GNUNET_OK; -} - - /** * Main function that will be run by the scheduler. * @@ -189,48 +170,6 @@ run (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Test: insert_denomination_info\n"); - - struct TALER_DenominationKeyValidityPS issue = { 0 }; - issue.master = master_pub; - issue.denom_hash = denom_pub_hash; - - issue.start = GNUNET_TIME_absolute_hton (now); - issue.expire_withdraw = GNUNET_TIME_absolute_hton - (GNUNET_TIME_absolute_add (now, - GNUNET_TIME_UNIT_HOURS)); - issue.expire_deposit = GNUNET_TIME_absolute_hton - (GNUNET_TIME_absolute_add - (now, - GNUNET_TIME_relative_multiply ( - GNUNET_TIME_UNIT_HOURS, 2))); - issue.expire_legal = GNUNET_TIME_absolute_hton - (GNUNET_TIME_absolute_add - (now, - GNUNET_TIME_relative_multiply ( - GNUNET_TIME_UNIT_HOURS, 3))); - TALER_amount_hton (&issue.value, &value); - TALER_amount_hton (&issue.fee_withdraw, &fee_withdraw); - TALER_amount_hton (&issue.fee_deposit, &fee_deposit); - TALER_amount_hton (&issue.fee_refresh, &fee_refresh); - TALER_amount_hton (&issue.fee_refund, &fee_refund); - - FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != - plugin->insert_denomination_info (plugin->cls, - session, - &issue)); - - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Test: select_denomination_info\n"); - - FAILIF (0 >= - plugin->select_denomination_info (plugin->cls, - session, - &master_pub, - &select_denomination_info_result, - &issue)); - - GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Test: insert_auditor_progress\n"); struct TALER_AUDITORDB_ProgressPointCoin ppc = { |