diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-11-09 23:22:55 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-11-09 23:22:55 +0100 |
commit | 753a506f6564a05176864f3ba561e732b85d54a5 (patch) | |
tree | 012eb4ebcc0d3a91f5cf2d6b6e09530b11160f93 /src/testing/testing_api_cmd_coin_history.c | |
parent | 41780a7f4ad1e4d68c57ca10f6521b89156772d6 (diff) | |
download | exchange-753a506f6564a05176864f3ba561e732b85d54a5.tar.xz |
more work on coin history testing
Diffstat (limited to 'src/testing/testing_api_cmd_coin_history.c')
-rw-r--r-- | src/testing/testing_api_cmd_coin_history.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_coin_history.c b/src/testing/testing_api_cmd_coin_history.c index bd0fc4fbd..e10199abd 100644 --- a/src/testing/testing_api_cmd_coin_history.c +++ b/src/testing/testing_api_cmd_coin_history.c @@ -127,6 +127,15 @@ history_entry_cmp ( GNUNET_break (0); break; case TALER_EXCHANGE_CTT_DEPOSIT: + if (0 != GNUNET_memcmp (&h1->details.deposit.h_contract_terms, + &h2->details.deposit.h_contract_terms)) + return 1; + if (0 != GNUNET_memcmp (&h1->details.deposit.merchant_pub, + &h2->details.deposit.merchant_pub)) + return 1; + if (0 != GNUNET_memcmp (&h1->details.deposit.h_wire, + &h2->details.deposit.h_wire)) + return 1; if (0 != GNUNET_memcmp (&h1->details.deposit.sig, &h2->details.deposit.sig)) return 1; @@ -255,7 +264,13 @@ analyze_command (void *cls, if (0 != GNUNET_memcmp (rp, coin_pub)) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Command `%s#%u' is about another coin\n", + cmd->label, + j); continue; /* command affects some _other_ coin */ + } if (GNUNET_OK != TALER_TESTING_get_trait_coin_history (cmd, j, @@ -417,7 +432,7 @@ coin_history_cb (void *cls, TALER_TESTING_interpreter_fail (ss->is); return; } -#if FIXME +#if 1 for (unsigned int i = 0; i<hlen; i++) { if (found[i]) |