From e6b13123d78c7da4fdcb2cf0e7eb5fafe1f62975 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 18 Mar 2015 13:50:03 +0100 Subject: update reserve summary when withdraws are made through insert_collectible_blindcoin --- src/mint/test_mint_db.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mint/test_mint_db.c') 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)); -- cgit v1.2.3