diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-07-24 11:57:03 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-07-24 11:57:03 +0200 |
commit | 9e3f4bdd791f87df25cfd2b818c7ef385b78b35d (patch) | |
tree | 88f9fad664fbc84bc642381905bda6c65263dd67 /src/exchange | |
parent | 80ff1866489dc3c77e84dc4b8f793067ff586745 (diff) | |
download | exchange-9e3f4bdd791f87df25cfd2b818c7ef385b78b35d.tar.xz |
getting revocation/payback test with refreshed coins to pass
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd_payback.c | 1 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_refresh_reveal.c | 10 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_reserve_withdraw.c | 6 |
3 files changed, 9 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_payback.c b/src/exchange/taler-exchange-httpd_payback.c index 8cfc1aecc..50c0ffdbc 100644 --- a/src/exchange/taler-exchange-httpd_payback.c +++ b/src/exchange/taler-exchange-httpd_payback.c @@ -305,6 +305,7 @@ payback_transaction (void *cls, } return qs; } + GNUNET_assert (GNUNET_OK == TALER_amount_get_zero (pc->value.currency, &spent)); diff --git a/src/exchange/taler-exchange-httpd_refresh_reveal.c b/src/exchange/taler-exchange-httpd_refresh_reveal.c index d34c85a92..47287b155 100644 --- a/src/exchange/taler-exchange-httpd_refresh_reveal.c +++ b/src/exchange/taler-exchange-httpd_refresh_reveal.c @@ -556,7 +556,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, GNUNET_break_op (0); return TEH_RESPONSE_reply_arg_invalid (connection, TALER_EC_REFRESH_REVEAL_NEW_DENOMS_ARRAY_SIZE_EXCESSIVE, - "new_denoms"); + "new_denoms_h"); } if (json_array_size (new_denoms_h_json) != @@ -640,7 +640,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, TEH_KS_release (key_state); return TEH_RESPONSE_reply_arg_invalid (connection, TALER_EC_REFRESH_REVEAL_FRESH_DENOMINATION_KEY_NOT_FOUND, - "new_denoms"); + "new_denoms_h"); } GNUNET_assert (NULL != dkis[i]->denom_priv.rsa_private_key); } @@ -674,7 +674,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, /* lookup old_coin_pub in database */ { enum GNUNET_DB_QueryStatus qs; - + if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != (qs = TEH_plugin->get_melt (TEH_plugin->cls, NULL, @@ -725,7 +725,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, ldp.purpose.size = htonl (sizeof (ldp)); ldp.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_LINK); ldp.h_denom_pub = dki_h[i]; - ldp.old_coin_pub = refresh_melt.session.coin.coin_pub; + ldp.old_coin_pub = refresh_melt.session.coin.coin_pub; ldp.transfer_pub = rctx->gamma_tp; GNUNET_CRYPTO_hash (rcds[i].coin_ev, rcds[i].coin_ev_size, @@ -744,7 +744,7 @@ handle_refresh_reveal_json (struct MHD_Connection *connection, } } } - + rctx->num_fresh_coins = num_fresh_coins; rctx->rcds = rcds; rctx->dkis = dkis; diff --git a/src/exchange/taler-exchange-httpd_reserve_withdraw.c b/src/exchange/taler-exchange-httpd_reserve_withdraw.c index 32d53980d..65bca25e5 100644 --- a/src/exchange/taler-exchange-httpd_reserve_withdraw.c +++ b/src/exchange/taler-exchange-httpd_reserve_withdraw.c @@ -286,7 +286,7 @@ withdraw_transaction (void *cls, return GNUNET_DB_STATUS_HARD_ERROR; } *mhd_ret = reply_reserve_withdraw_insufficient_funds (connection, - rh); + rh); TEH_plugin->free_reserve_history (TEH_plugin->cls, rh); return GNUNET_DB_STATUS_HARD_ERROR; @@ -319,8 +319,8 @@ withdraw_transaction (void *cls, wc->collectable.h_coin_envelope = wc->wsrd.h_coin_envelope; wc->collectable.reserve_sig = wc->signature; qs = TEH_plugin->insert_withdraw_info (TEH_plugin->cls, - session, - &wc->collectable); + session, + &wc->collectable); if (0 > qs) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qs); |