diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:42:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-28 20:42:20 +0100 |
commit | 9d9b0e0e571a7c6791cf83235f92d1a5d9369637 (patch) | |
tree | f43dc5b0a56e4b6b67f10df2e78fb1a97a60c8ee /src/testing/testing_api_cmd_revoke.c | |
parent | 2d297a17215ad1354cb5b70f3eeabdee7c93225e (diff) | |
download | exchange-9d9b0e0e571a7c6791cf83235f92d1a5d9369637.tar.xz |
split recoup and revoke commands into two files for better readability
Diffstat (limited to 'src/testing/testing_api_cmd_revoke.c')
-rw-r--r-- | src/testing/testing_api_cmd_revoke.c | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/testing/testing_api_cmd_revoke.c b/src/testing/testing_api_cmd_revoke.c index 82825d73b..1006fbc34 100644 --- a/src/testing/testing_api_cmd_revoke.c +++ b/src/testing/testing_api_cmd_revoke.c @@ -109,7 +109,8 @@ revoke_traits (void *cls, struct TALER_TESTING_Trait traits[] = { /* Needed by the handler which waits the proc' * death and calls the next command */ - TALER_TESTING_make_trait_process (0, &rs->revoke_proc), + TALER_TESTING_make_trait_process (0, + &rs->revoke_proc), TALER_TESTING_trait_end () }; @@ -140,8 +141,8 @@ revoke_run (void *cls, rs->is = is; /* Get denom pub from trait */ - coin_cmd = TALER_TESTING_interpreter_lookup_command - (is, rs->coin_reference); + coin_cmd = TALER_TESTING_interpreter_lookup_command (is, + rs->coin_reference); if (NULL == coin_cmd) { @@ -150,25 +151,27 @@ revoke_run (void *cls, return; } - GNUNET_assert (GNUNET_OK == TALER_TESTING_get_trait_denom_pub - (coin_cmd, 0, &denom_pub)); + GNUNET_assert (GNUNET_OK == + TALER_TESTING_get_trait_denom_pub (coin_cmd, + 0, + &denom_pub)); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Trying to revoke denom '%s..'\n", TALER_B2S (&denom_pub->h_key)); - rs->dhks = GNUNET_STRINGS_data_to_string_alloc - (&denom_pub->h_key, sizeof (struct GNUNET_HashCode)); - - rs->revoke_proc = GNUNET_OS_start_process - (GNUNET_NO, - GNUNET_OS_INHERIT_STD_ALL, - NULL, NULL, NULL, - "taler-exchange-keyup", - "taler-exchange-keyup", - "-c", rs->config_filename, - "-r", rs->dhks, - NULL); + rs->dhks = GNUNET_STRINGS_data_to_string_alloc ( + &denom_pub->h_key, + sizeof (struct GNUNET_HashCode)); + + rs->revoke_proc = GNUNET_OS_start_process (GNUNET_NO, + GNUNET_OS_INHERIT_STD_ALL, + NULL, NULL, NULL, + "taler-exchange-keyup", + "taler-exchange-keyup", + "-c", rs->config_filename, + "-r", rs->dhks, + NULL); if (NULL == rs->revoke_proc) { |