diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-18 18:55:46 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-18 18:55:46 +0100 |
commit | 1f3f4ed8dd292f1aad0b2ca59dc9c669cafb19e4 (patch) | |
tree | 750a704ecb35d02da78999f7a8afb3a7c34b3cd0 /src/mint/test_mint_db.c | |
parent | 23bf1eee74bed73cf98264c247ab44df8dadfcd9 (diff) | |
parent | e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975 (diff) |
Merge branch 'master' of git+ssh://taler.net/var/git/mint
Diffstat (limited to 'src/mint/test_mint_db.c')
-rw-r--r-- | src/mint/test_mint_db.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mint/test_mint_db.c b/src/mint/test_mint_db.c index 01041613..6a55a1d3 100644 --- a/src/mint/test_mint_db.c +++ b/src/mint/test_mint_db.c @@ -194,9 +194,18 @@ run (void *cls, char *const *args, const char *cfgfile, cbc.denom_pub = dkp->pub; cbc.sig = GNUNET_CRYPTO_rsa_sign (dkp->priv, &h_blind, sizeof (h_blind)); (void) memcpy (&cbc.reserve_pub, &reserve_pub, sizeof (reserve_pub)); + amount.value--; + amount.fraction--; FAILIF (GNUNET_OK != TALER_MINT_DB_insert_collectable_blindcoin (db, &h_blind, + amount, &cbc)); + FAILIF (GNUNET_OK != check_reserve (db, + &reserve_pub, + amount.value, + amount.fraction, + amount.currency, + expiry.abs_value_us)); FAILIF (GNUNET_YES != TALER_MINT_DB_get_collectable_blindcoin (db, &h_blind, &cbc2)); |