diff options
| author | Christian Grothoff <christian@grothoff.org> | 2022-11-21 14:21:01 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2022-11-21 14:21:01 +0100 | 
| commit | 0c94dcb79e820db768755a3348005f82e85537f7 (patch) | |
| tree | b5929c4c9f9dec5abcb7da4239e0ac6b16e48f01 /src/testing | |
| parent | 7d3ce9bb5d03e42f97102acfc303b590f89e5d40 (diff) | |
| parent | e82cbd05b6b2c52f4053f3347ac01b0d0ed905af (diff) | |
Merge branch 'master' of git+ssh://git.taler.net/exchange
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing_api_cmd_common.c | 39 | 
1 files changed, 35 insertions, 4 deletions
| diff --git a/src/testing/testing_api_cmd_common.c b/src/testing/testing_api_cmd_common.c index bb0eb3f0..91138f36 100644 --- a/src/testing/testing_api_cmd_common.c +++ b/src/testing/testing_api_cmd_common.c @@ -90,8 +90,7 @@ TALER_TESTING_history_entry_cmp (           (GNUNET_TIME_timestamp_cmp (              h1->details.history_details.request_timestamp,              ==, -            h2->details.history_details. -            request_timestamp)) && +            h2->details.history_details.request_timestamp)) &&           (0 ==            GNUNET_memcmp (&h1->details.history_details.reserve_sig,                           &h2->details.history_details.reserve_sig)) ) @@ -131,10 +130,42 @@ TALER_TESTING_history_entry_cmp (        return 0;      return 1;    case TALER_EXCHANGE_RTT_OPEN: -    // FIXME: verify response... +    if ( (0 == +          TALER_amount_cmp (&h1->amount, +                            &h2->amount)) && +         (GNUNET_TIME_timestamp_cmp ( +            h1->details.open_request.request_timestamp, +            ==, +            h2->details.open_request.request_timestamp)) && +         (GNUNET_TIME_timestamp_cmp ( +            h1->details.open_request.reserve_expiration, +            ==, +            h2->details.open_request.reserve_expiration)) && +         (h1->details.open_request.purse_limit == +          h2->details.open_request.purse_limit) && +         (0 == +          TALER_amount_cmp (&h1->details.open_request.reserve_payment, +                            &h2->details.open_request.reserve_payment)) && +         (0 == +          GNUNET_memcmp (&h1->details.open_request.reserve_sig, +                         &h2->details.open_request.reserve_sig)) ) +      return 0;      return 1;    case TALER_EXCHANGE_RTT_CLOSE: -    // FIXME: verify response... +    if ( (0 == +          TALER_amount_cmp (&h1->amount, +                            &h2->amount)) && +         (GNUNET_TIME_timestamp_cmp ( +            h1->details.close_request.request_timestamp, +            ==, +            h2->details.close_request.request_timestamp)) && +         (0 == +          GNUNET_memcmp (&h1->details.close_request.target_account_h_payto, +                         &h2->details.close_request.target_account_h_payto)) && +         (0 == +          GNUNET_memcmp (&h1->details.close_request.reserve_sig, +                         &h2->details.close_request.reserve_sig)) ) +      return 0;      return 1;    }    GNUNET_assert (0); | 
