aboutsummaryrefslogtreecommitdiff
path: root/src/mint/test_mint_deposits.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-22 16:09:01 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-22 16:09:01 +0100
commit1277f8445d0497107c5bd41b35007480d6a4472a (patch)
treed6144643860085ba45f66e06748912acc83e6aa9 /src/mint/test_mint_deposits.c
parentc2a42d5475daf23889c720734edbafc8c2ce4e4f (diff)
include fees in amounts being signed, check available balance on refresh
Diffstat (limited to 'src/mint/test_mint_deposits.c')
-rw-r--r--src/mint/test_mint_deposits.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mint/test_mint_deposits.c b/src/mint/test_mint_deposits.c
index c829e6e1..4107c1ae 100644
--- a/src/mint/test_mint_deposits.c
+++ b/src/mint/test_mint_deposits.c
@@ -94,12 +94,12 @@ run (void *cls,
UINT64_MAX);
deposit->transaction_id = GNUNET_htonll (transaction_id);
/* Random amount */
- deposit->amount.value =
+ deposit->amount_with_fee.value =
htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX));
- deposit->amount.fraction =
+ deposit->amount_with_fee.fraction =
htonl (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, UINT32_MAX));
- GNUNET_assert (strlen (MINT_CURRENCY) < sizeof (deposit->amount.currency));
- strcpy (deposit->amount.currency, MINT_CURRENCY);
+ GNUNET_assert (strlen (MINT_CURRENCY) < sizeof (deposit->amount_with_fee.currency));
+ strcpy (deposit->amount_with_fee.currency, MINT_CURRENCY);
/* Copy wireformat */
deposit->wire = json_loads (wire, 0, NULL);
EXITIF (GNUNET_OK !=