[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 04/04: fixed cli splitter
From: |
gnunet |
Subject: |
[taler-anastasis] 04/04: fixed cli splitter |
Date: |
Tue, 25 Aug 2020 14:48:54 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit aee07d5e7223d4845e3e8fc1c8ee7c51bd7cbef1
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Tue Aug 25 14:47:58 2020 +0200
fixed cli splitter
---
src/cli/anastasis-cli-splitter.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/cli/anastasis-cli-splitter.c b/src/cli/anastasis-cli-splitter.c
index ada2db6..89ace88 100644
--- a/src/cli/anastasis-cli-splitter.c
+++ b/src/cli/anastasis-cli-splitter.c
@@ -1040,15 +1040,28 @@ read_keyboard_command (void *cls)
printf ("\n");
}
}
+ tus->tuo = ANASTASIS_truth_upload (ctx,
+ servers[server_num].user_id,
+ servers[server_num].backend_url,
+ tus->method,
+ tus->instructions,
+ tus->mime_type,
+ servers[server_num].backend_salt,
+ tus->truth_data,
+ tus->truth_data_size,
+ &truth_payment_cb,
+ tus->tpc_cls,
+ &truth_upload_cb,
+ tus);
GNUNET_array_append (tu_states,
tu_states_length,
*tus);
// fix policies after appending tu_state
if (pc_states_length > 0)
{
+ printf ("\n");
for (unsigned int i = 0; i < pc_states_length; i++)
{
- printf ("\n");
printf ("%i:", i);
unsigned int k = 0;
for (unsigned int j = 0; j < tu_states_length - 1; j++)
@@ -1066,20 +1079,6 @@ read_keyboard_command (void *cls)
printf ("\n");
}
}
- tus->tuo = ANASTASIS_truth_upload (ctx,
- servers[server_num].user_id,
- servers[server_num].backend_url,
- tus->method,
- tus->instructions,
- tus->mime_type,
- servers[server_num].backend_salt,
- tus->truth_data,
- tus->truth_data_size,
- &truth_payment_cb,
- tus->tpc_cls,
- &truth_upload_cb,
- tus);
-
if (NULL == tus->tuo)
{
GNUNET_break (0);
@@ -1256,6 +1255,7 @@ read_keyboard_command (void *cls)
for (unsigned int j = 0; j < pc_states[i].tu_states_len; j++)
{
+ GNUNET_assert (NULL != pc_states[i].tu_states[j]->truth);
truths[j] = pc_states[i].tu_states[j]->truth;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.