diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-06 10:16:49 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-06 10:16:49 +0200 |
commit | 2e7b28765ea2871df03353681f0680c53ec3ebef (patch) | |
tree | 3895a042cc0e54ed325bdefe643b2a66413e75d1 /src/mintdb/test_mintdb.c | |
parent | 7ad57d7a6708eb451395a78b4c88797844d78d62 (diff) | |
download | exchange-2e7b28765ea2871df03353681f0680c53ec3ebef.tar.gz exchange-2e7b28765ea2871df03353681f0680c53ec3ebef.tar.bz2 exchange-2e7b28765ea2871df03353681f0680c53ec3ebef.zip |
simplifying use of struct TALER_DenominationKeyValidityPS by removing signature
Diffstat (limited to 'src/mintdb/test_mintdb.c')
-rw-r--r-- | src/mintdb/test_mintdb.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mintdb/test_mintdb.c b/src/mintdb/test_mintdb.c index 857d54413..a01518e14 100644 --- a/src/mintdb/test_mintdb.c +++ b/src/mintdb/test_mintdb.c @@ -105,26 +105,26 @@ register_denomination(struct TALER_DenominationPublicKey denom_pub, 0, sizeof (struct TALER_MINTDB_DenominationKeyIssueInformation)); dki.denom_pub = denom_pub; - dki.issue.start = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()); - dki.issue.expire_withdraw = GNUNET_TIME_absolute_hton + dki.issue.properties.start = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()); + dki.issue.properties.expire_withdraw = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_add (GNUNET_TIME_absolute_get (), GNUNET_TIME_UNIT_HOURS)); - dki.issue.expire_spend = GNUNET_TIME_absolute_hton + dki.issue.properties.expire_spend = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_add (GNUNET_TIME_absolute_get (), GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 2))); - dki.issue.expire_legal = GNUNET_TIME_absolute_hton + dki.issue.properties.expire_legal = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_add (GNUNET_TIME_absolute_get (), GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_HOURS, 3))); - dki.issue.value.value = GNUNET_htonll (1); - dki.issue.value.fraction = htonl (100); - (void) strcpy (dki.issue.value.currency, CURRENCY); - dki.issue.fee_withdraw.value = 0; - dki.issue.fee_withdraw.fraction = htonl (100); - (void) strcpy (dki.issue.fee_withdraw.currency, CURRENCY); - dki.issue.fee_deposit = dki.issue.fee_withdraw; - dki.issue.fee_refresh = dki.issue.fee_withdraw; + dki.issue.properties.value.value = GNUNET_htonll (1); + dki.issue.properties.value.fraction = htonl (100); + (void) strcpy (dki.issue.properties.value.currency, CURRENCY); + dki.issue.properties.fee_withdraw.value = 0; + dki.issue.properties.fee_withdraw.fraction = htonl (100); + (void) strcpy (dki.issue.properties.fee_withdraw.currency, CURRENCY); + dki.issue.properties.fee_deposit = dki.issue.properties.fee_withdraw; + dki.issue.properties.fee_refresh = dki.issue.properties.fee_withdraw; if (GNUNET_OK != plugin->insert_denomination_info (plugin->cls, session, |