diff options
Diffstat (limited to 'src/lib/exchange_api_deposit.c')
-rw-r--r-- | src/lib/exchange_api_deposit.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c index a5cf6c36a..276053658 100644 --- a/src/lib/exchange_api_deposit.c +++ b/src/lib/exchange_api_deposit.c | |||
@@ -160,7 +160,7 @@ auditor_cb (void *cls, | |||
160 | ah, | 160 | ah, |
161 | &dh->depconf.h_wire, | 161 | &dh->depconf.h_wire, |
162 | &dh->depconf.h_contract_terms, | 162 | &dh->depconf.h_contract_terms, |
163 | GNUNET_TIME_absolute_ntoh (dh->depconf.timestamp), | 163 | GNUNET_TIME_absolute_ntoh (dh->depconf.exchange_timestamp), |
164 | GNUNET_TIME_absolute_ntoh (dh->depconf.refund_deadline), | 164 | GNUNET_TIME_absolute_ntoh (dh->depconf.refund_deadline), |
165 | &amount_without_fee, | 165 | &amount_without_fee, |
166 | &dh->depconf.coin_pub, | 166 | &dh->depconf.coin_pub, |
@@ -198,6 +198,8 @@ verify_deposit_signature_ok (struct TALER_EXCHANGE_DepositHandle *dh, | |||
198 | struct GNUNET_JSON_Specification spec[] = { | 198 | struct GNUNET_JSON_Specification spec[] = { |
199 | GNUNET_JSON_spec_fixed_auto ("exchange_sig", exchange_sig), | 199 | GNUNET_JSON_spec_fixed_auto ("exchange_sig", exchange_sig), |
200 | GNUNET_JSON_spec_fixed_auto ("exchange_pub", exchange_pub), | 200 | GNUNET_JSON_spec_fixed_auto ("exchange_pub", exchange_pub), |
201 | GNUNET_JSON_spec_absolute_time_nbo ("exchange_timestamp", | ||
202 | &dh->depconf.exchange_timestamp), | ||
201 | GNUNET_JSON_spec_end () | 203 | GNUNET_JSON_spec_end () |
202 | }; | 204 | }; |
203 | 205 | ||
@@ -386,6 +388,7 @@ handle_deposit_finished (void *cls, | |||
386 | } | 388 | } |
387 | dh->cb (dh->cb_cls, | 389 | dh->cb (dh->cb_cls, |
388 | &hr, | 390 | &hr, |
391 | GNUNET_TIME_absolute_ntoh (dh->depconf.exchange_timestamp), | ||
389 | es, | 392 | es, |
390 | ep); | 393 | ep); |
391 | TALER_EXCHANGE_deposit_cancel (dh); | 394 | TALER_EXCHANGE_deposit_cancel (dh); |
@@ -429,7 +432,7 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki, | |||
429 | .purpose.size = htonl (sizeof (dr)), | 432 | .purpose.size = htonl (sizeof (dr)), |
430 | .h_contract_terms = *h_contract_terms, | 433 | .h_contract_terms = *h_contract_terms, |
431 | .h_wire = *h_wire, | 434 | .h_wire = *h_wire, |
432 | .timestamp = GNUNET_TIME_absolute_hton (timestamp), | 435 | .wallet_timestamp = GNUNET_TIME_absolute_hton (timestamp), |
433 | .refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline), | 436 | .refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline), |
434 | .merchant = *merchant_pub, | 437 | .merchant = *merchant_pub, |
435 | .coin_pub = *coin_pub | 438 | .coin_pub = *coin_pub |
@@ -658,7 +661,7 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange, | |||
658 | TALER_SIGNATURE_EXCHANGE_CONFIRM_DEPOSIT); | 661 | TALER_SIGNATURE_EXCHANGE_CONFIRM_DEPOSIT); |
659 | dh->depconf.h_contract_terms = *h_contract_terms; | 662 | dh->depconf.h_contract_terms = *h_contract_terms; |
660 | dh->depconf.h_wire = h_wire; | 663 | dh->depconf.h_wire = h_wire; |
661 | dh->depconf.timestamp = GNUNET_TIME_absolute_hton (timestamp); | 664 | /* dh->depconf.exchange_timestamp; -- initialized later from exchange reply! */ |
662 | dh->depconf.refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline); | 665 | dh->depconf.refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline); |
663 | TALER_amount_hton (&dh->depconf.amount_without_fee, | 666 | TALER_amount_hton (&dh->depconf.amount_without_fee, |
664 | &amount_without_fee); | 667 | &amount_without_fee); |