diff options
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_batch.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c index 738012b8..e4d11ae5 100644 --- a/src/exchange-lib/testing_api_cmd_batch.c +++ b/src/exchange-lib/testing_api_cmd_batch.c @@ -156,7 +156,6 @@ TALER_TESTING_cmd_batch (const char *label, struct BatchState *bs; unsigned int i; - cmd.meta = GNUNET_YES; bs = GNUNET_new (struct BatchState); bs->batch_ip = -1; @@ -179,3 +178,15 @@ TALER_TESTING_cmd_batch (const char *label, return cmd; } + + +/** + * Test if this command is a batch command. + * + * @return false if not, true if it is a batch command + */ +int +TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd) +{ + return cmd->run == &batch_run; +} |