diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-05-23 12:17:41 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-05-23 12:17:41 +0200 |
commit | 2035294adbcafc93c70d2cb7d27ce1a74d5a61ca (patch) | |
tree | 9acab1fe4dd1e1c604376a9c8e843e1963025cc4 /src/testing/testing_api_cmd_reserve_purse.c | |
parent | f1a58b0fd857b78f634b10b1a50759b380a5adee (diff) | |
download | exchange-2035294adbcafc93c70d2cb7d27ce1a74d5a61ca.tar.xz |
-more traits for reserve history checking
Diffstat (limited to 'src/testing/testing_api_cmd_reserve_purse.c')
-rw-r--r-- | src/testing/testing_api_cmd_reserve_purse.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_reserve_purse.c b/src/testing/testing_api_cmd_reserve_purse.c index b923e1cc6..b57fff2bd 100644 --- a/src/testing/testing_api_cmd_reserve_purse.c +++ b/src/testing/testing_api_cmd_reserve_purse.c @@ -47,6 +47,12 @@ struct ReservePurseState struct TALER_ReservePrivateKeyP reserve_priv; /** + * Reserve signature generated for the request + * (client-side). + */ + struct TALER_ReserveSignatureP reserve_sig; + + /** * Private key of the purse. */ struct TALER_PurseContractPrivateKeyP purse_priv; @@ -118,6 +124,7 @@ purse_cb (void *cls, struct ReservePurseState *ds = cls; ds->dh = NULL; + ds->reserve_sig = *dr->reserve_sig; if (ds->expected_response_code != dr->hr.http_status) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, @@ -187,7 +194,7 @@ purse_run (void *cls, &ds->contract_priv, ds->contract_terms, true /* upload contract */, - false /* do not pay purse fee -- FIXME: make this a choice to test this case! */, + false /* do not pay purse fee -- FIXME: make this a choice to test this case; then update testing_api_cmd_purse_deposit flags logic to match! */, ds->merge_timestamp, &purse_cb, ds); @@ -254,6 +261,7 @@ purse_traits (void *cls, TALER_TESTING_make_trait_merge_priv (&ds->merge_priv), TALER_TESTING_make_trait_contract_priv (&ds->contract_priv), TALER_TESTING_make_trait_reserve_priv (&ds->reserve_priv), + TALER_TESTING_make_trait_reserve_sig (&ds->reserve_sig), TALER_TESTING_trait_end () }; |