diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-27 14:04:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-27 14:04:29 +0200 |
commit | 54504b7f37f3c1de1d57141fca7cc6c0944a6b02 (patch) | |
tree | 95696616d3c6f31fcdba6e9c1583b6487648ca1d /src/exchangedb/test_exchangedb.c | |
parent | 0ccb420f4cccd965e4aa878aa39133c3d5054383 (diff) | |
download | exchange-54504b7f37f3c1de1d57141fca7cc6c0944a6b02.tar.xz |
a first step towards normalizing the DB a bit and not storing data redundantly
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index 6d624f407..8339a8f24 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -1185,8 +1185,7 @@ run (void *cls) deposit.transaction_id = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, UINT64_MAX); deposit.amount_with_fee = value; - GNUNET_assert (GNUNET_OK == - TALER_amount_get_zero (CURRENCY, &deposit.deposit_fee)); + deposit.deposit_fee = fee_deposit; result = 8; FAILIF (GNUNET_OK != plugin->insert_deposit (plugin->cls, @@ -1381,7 +1380,7 @@ run (void *cls) memset (&merchant_pub_wt, 43, sizeof (merchant_pub_wt)); memset (&h_wire_wt, 44, sizeof (h_wire_wt)); memset (&h_contract_wt, 45, sizeof (h_contract_wt)); - memset (&coin_pub_wt, 46, sizeof (coin_pub_wt)); + coin_pub_wt = deposit.coin.coin_pub; transaction_id_wt = 47; execution_time_wt = GNUNET_TIME_absolute_get (); memset (&merchant_pub_wt, 48, sizeof (merchant_pub_wt)); |