diff options
Diffstat (limited to 'src/auditor')
| -rw-r--r-- | src/auditor/taler-auditor-httpd_deposit-confirmation.c | 5 | ||||
| -rw-r--r-- | src/auditor/taler-helper-auditor-coins.c | 8 | ||||
| -rw-r--r-- | src/auditor/taler-helper-auditor-deposits.c | 9 | 
3 files changed, 15 insertions, 7 deletions
| diff --git a/src/auditor/taler-auditor-httpd_deposit-confirmation.c b/src/auditor/taler-auditor-httpd_deposit-confirmation.c index 5f84a725..1039164c 100644 --- a/src/auditor/taler-auditor-httpd_deposit-confirmation.c +++ b/src/auditor/taler-auditor-httpd_deposit-confirmation.c @@ -155,7 +155,7 @@ verify_and_execute_deposit_confirmation (        .purpose.size = htonl (sizeof (struct TALER_DepositConfirmationPS)),        .h_contract_terms = dc->h_contract_terms,        .h_wire = dc->h_wire, -      .timestamp = GNUNET_TIME_absolute_hton (dc->timestamp), +      .exchange_timestamp = GNUNET_TIME_absolute_hton (dc->exchange_timestamp),        .refund_deadline = GNUNET_TIME_absolute_hton (dc->refund_deadline),        .coin_pub = dc->coin_pub,        .merchant = dc->merchant @@ -224,7 +224,8 @@ TAH_DEPOSIT_CONFIRMATION_handler (struct TAH_RequestHandler *rh,    struct GNUNET_JSON_Specification spec[] = {      GNUNET_JSON_spec_fixed_auto ("h_contract_terms", &dc.h_contract_terms),      GNUNET_JSON_spec_fixed_auto ("h_wire", &dc.h_wire), -    GNUNET_JSON_spec_absolute_time ("timestamp", &dc.timestamp), +    GNUNET_JSON_spec_absolute_time ("exchange_timestamp", +                                    &dc.exchange_timestamp),      GNUNET_JSON_spec_absolute_time ("refund_deadline", &dc.refund_deadline),      TALER_JSON_spec_amount ("amount_without_fee", &dc.amount_without_fee),      GNUNET_JSON_spec_fixed_auto ("coin_pub", &dc.coin_pub), diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c index 2e32c569..158baa8b 100644 --- a/src/auditor/taler-helper-auditor-coins.c +++ b/src/auditor/taler-helper-auditor-coins.c @@ -1535,7 +1535,8 @@ refresh_session_cb (void *cls,   *   * @param cls closure   * @param rowid unique serial ID for the deposit in our DB - * @param timestamp when did the deposit happen + * @param exchange_timestamp when did the exchange get the deposit + * @param wallet_timestamp when did the contract signing happen   * @param merchant_pub public key of the merchant   * @param denom_pub denomination public key of @a coin_pub   * @param coin_pub public key of the coin @@ -1553,7 +1554,8 @@ refresh_session_cb (void *cls,  static int  deposit_cb (void *cls,              uint64_t rowid, -            struct GNUNET_TIME_Absolute timestamp, +            struct GNUNET_TIME_Absolute exchange_timestamp, +            struct GNUNET_TIME_Absolute wallet_timestamp,              const struct TALER_MerchantPublicKeyP *merchant_pub,              const struct TALER_DenominationPublicKey *denom_pub,              const struct TALER_CoinSpendPublicKeyP *coin_pub, @@ -1611,7 +1613,7 @@ deposit_cb (void *cls,        .purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_DEPOSIT),        .purpose.size = htonl (sizeof (dr)),        .h_contract_terms = *h_contract_terms, -      .timestamp = GNUNET_TIME_absolute_hton (timestamp), +      .wallet_timestamp = GNUNET_TIME_absolute_hton (wallet_timestamp),        .refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline),        .deposit_fee = issue->fee_deposit,        .merchant = *merchant_pub, diff --git a/src/auditor/taler-helper-auditor-deposits.c b/src/auditor/taler-helper-auditor-deposits.c index 29155859..ed23c6a5 100644 --- a/src/auditor/taler-helper-auditor-deposits.c +++ b/src/auditor/taler-helper-auditor-deposits.c @@ -114,11 +114,15 @@ test_dc (void *cls,        .h_wire = dc->h_wire,        .refund_deadline = dc->refund_deadline      }; +    struct GNUNET_TIME_Absolute exchange_timestamp; +    struct TALER_Amount deposit_fee;      qs = TALER_ARL_edb->have_deposit (TALER_ARL_edb->cls,                                        TALER_ARL_esession,                                        &dep, -                                      GNUNET_NO /* do not check refund deadline */); +                                      GNUNET_NO /* do not check refund deadline */, +                                      &deposit_fee, +                                      &exchange_timestamp);      if (qs > 0)      {        GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, @@ -137,7 +141,8 @@ test_dc (void *cls,    TALER_ARL_report (report_deposit_confirmation_inconsistencies,                      json_pack ("{s:o, s:o, s:I, s:o}",                                 "timestamp", -                               TALER_ARL_json_from_time_abs (dc->timestamp), +                               TALER_ARL_json_from_time_abs ( +                                 dc->exchange_timestamp),                                 "amount",                                 TALER_JSON_from_amount (&dc->amount_without_fee),                                 "rowid", | 
