diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-18 13:50:03 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-18 13:50:03 +0100 |
commit | e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975 (patch) | |
tree | 25cf5f56ec26682c52097499098ce026c66bdec6 /src/mint/test_mint_db.c | |
parent | 08958c73e8ba6ad30e98a30968077cdf55bc86e8 (diff) | |
download | exchange-e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975.tar.gz exchange-e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975.tar.bz2 exchange-e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975.zip |
update reserve summary when withdraws are made through insert_collectible_blindcoin
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 010416138..6a55a1d35 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)); |