exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 624c5fda989e36df48537aac2a63c6ee80e350d4
parent 758a149059fa1bc9874886a65c8808fb4c7996d1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 23 Aug 2022 14:29:39 +0200

-avoid double next

Diffstat:
Msrc/auditor/report-lib.c | 3+++
Msrc/auditor/test-auditor.sh | 3++-
Msrc/exchange-tools/taler-exchange-offline.c | 11++++++++---
3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/auditor/report-lib.c b/src/auditor/report-lib.c @@ -588,6 +588,9 @@ TALER_ARL_init (const struct GNUNET_CONFIGURATION_Handle *c) GNUNET_free (master_public_key_str); return GNUNET_SYSERR; } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Running auditor against exchange master public key `%s'\n", + master_public_key_str); GNUNET_free (master_public_key_str); } /* end of -m not given */ diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh @@ -211,7 +211,8 @@ function run_audit () { pre_audit ${1:-no} if test ${2:-no} = "drain" then - echo -n "Running taler-exchange-offline drain ..." + echo -n "Running taler-exchange-offline drain with master public key " + gnunet-ecc -p ${DB}.mpriv cp "${CONF}" "${CONF}.tmp" taler-config -c "${CONF}.tmp" -s exchange-offline -o MASTER_PRIV_FILE -V ${DB}.mpriv echo -n "Starting exchange..." diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c @@ -4265,7 +4265,7 @@ do_extensions_show (char *const *args) json_dumps (obj, JSON_INDENT (2))); json_decref (obj); - next (args); + next (args + 1); } @@ -4326,10 +4326,16 @@ do_extensions_sign (char *const *args) &sig)); output_operation (OP_EXTENSIONS, obj); - next (args); + next (args + 1); } +/** + * Dispatch @a args in the @a cmds array. + * + * @param args arguments with subcommand to dispatch + * @param cmds array of possible subcommands to call + */ static void cmd_handler (char *const *args, const struct SubCommand *cmds) @@ -4397,7 +4403,6 @@ do_work_extensions (char *const *args) } cmd_handler (args, cmds); - next (args + 1); }