From 9d9b0e0e571a7c6791cf83235f92d1a5d9369637 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2020 20:42:20 +0100 Subject: split recoup and revoke commands into two files for better readability --- src/testing/testing_api_cmd_revoke.c | 37 +++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'src/testing/testing_api_cmd_revoke.c') 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) { -- cgit v1.2.3