diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-17 13:28:15 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-17 13:28:15 +0100 |
commit | 741831e87b3b189d3f75bdd9fa2ccc9a8d2ba8e2 (patch) | |
tree | d8737d801c2e7a5f52ae0a05b4069f9a673a234d /src/exchange/taler-exchange-httpd_deposit.c | |
parent | 8e0f06c86bdc6880bc24334e65b7920c8310ecdd (diff) | |
download | exchange-741831e87b3b189d3f75bdd9fa2ccc9a8d2ba8e2.tar.gz exchange-741831e87b3b189d3f75bdd9fa2ccc9a8d2ba8e2.tar.bz2 exchange-741831e87b3b189d3f75bdd9fa2ccc9a8d2ba8e2.zip |
bank API refactoring for #7276 (incomplete)
Diffstat (limited to 'src/exchange/taler-exchange-httpd_deposit.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_deposit.c | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 455888a89..740db7c1f 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -74,20 +74,20 @@ reply_deposit_success ( struct TALER_ExchangeSignatureP sig; enum TALER_ErrorCode ec; - if (TALER_EC_NONE != - (ec = TALER_exchange_online_deposit_confirmation_sign ( - &TEH_keys_exchange_sign_, - h_contract_terms, - h_wire, - h_policy, - exchange_timestamp, - wire_deadline, - refund_deadline, - amount_without_fee, - coin_pub, - merchant, - &pub, - &sig))) + ec = TALER_exchange_online_deposit_confirmation_sign ( + &TEH_keys_exchange_sign_, + h_contract_terms, + h_wire, + h_policy, + exchange_timestamp, + wire_deadline, + refund_deadline, + amount_without_fee, + coin_pub, + merchant, + &pub, + &sig); + if (TALER_EC_NONE != ec) { return TALER_MHD_reply_with_ec (connection, ec, @@ -187,8 +187,6 @@ deposit_transaction (void *cls, mhd_ret); if (qs < 0) return qs; - - /* If the deposit has a policy associated to it, persist it. This will * insert or update the record. */ if (dc->has_policy) @@ -203,16 +201,14 @@ deposit_transaction (void *cls, if (qs < 0) return qs; } - - qs = TEH_plugin->do_deposit ( TEH_plugin->cls, dc->deposit, dc->known_coin_id, &dc->h_payto, (dc->has_policy) - ? &dc->policy_details_serial_id - : NULL, + ? &dc->policy_details_serial_id + : NULL, &dc->exchange_timestamp, &balance_ok, &in_conflict); |