[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated (d069a9f -> 658dc77)
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated (d069a9f -> 658dc77) |
Date: |
Fri, 28 Aug 2020 18:26:06 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a change to branch master
in repository anastasis.
from d069a9f bridge editing
new f2e8388 deleted helper
new e269eae small fix for payment during policy upload
new 658dc77 Merge branch 'master' of ssh://git.taler.net/anastasis into
master
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/cli/anastasis-cli-splitter.c | 19 ++++++-------------
src/include/anastasis.h | 2 +-
2 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/src/cli/anastasis-cli-splitter.c b/src/cli/anastasis-cli-splitter.c
index 89ace88..47f884a 100644
--- a/src/cli/anastasis-cli-splitter.c
+++ b/src/cli/anastasis-cli-splitter.c
@@ -1022,7 +1022,6 @@ read_keyboard_command (void *cls)
{
for (unsigned int i = 0; i < pc_states_length; i++)
{
- printf ("%i:", i);
for (unsigned int j = 0; j < tu_states_length; j++)
{
bool match = false;
@@ -1035,9 +1034,7 @@ read_keyboard_command (void *cls)
}
}
tu_mem[i][j] = match;
- printf (" %d ", match);
}
- printf ("\n");
}
}
tus->tuo = ANASTASIS_truth_upload (ctx,
@@ -1059,10 +1056,8 @@ read_keyboard_command (void *cls)
// fix policies after appending tu_state
if (pc_states_length > 0)
{
- printf ("\n");
for (unsigned int i = 0; i < pc_states_length; i++)
{
- printf ("%i:", i);
unsigned int k = 0;
for (unsigned int j = 0; j < tu_states_length - 1; j++)
{
@@ -1070,13 +1065,9 @@ read_keyboard_command (void *cls)
{
pc_states[i].tu_states[k] = &tu_states[j];
k++;
- printf (" 1 ");
}
- else
- printf (" 0 ");
}
pc_states[i].tu_states_len = k;
- printf ("\n");
}
}
if (NULL == tus->tuo)
@@ -1310,17 +1301,19 @@ read_keyboard_command (void *cls)
{
printf ("To skip following press enter\n");
printf ("Please type in PaymentSecret for Server#%u: ", i);
+ free (buffer);
buffer = readline ((char *) NULL);
characters = strlen (buffer);
if (characters > 1)
{
add_history (buffer);
pds[i]->payment_order_id = GNUNET_malloc (characters + 1);
- char *payment_order_id = NULL;
- GNUNET_strlcpy (payment_order_id,
+ GNUNET_strlcpy (pds[i]->payment_order_id,
buffer,
- characters);
- pds[i]->payment_order_id = (const char *) payment_order_id;
+ characters + 1);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "At %s:%d payment secret is %s\n", __FILE__, __LINE__,
+ pds[i]->payment_order_id);
free (buffer);
buffer = (char *) NULL;
}
diff --git a/src/include/anastasis.h b/src/include/anastasis.h
index 0106ef3..cf590db 100644
--- a/src/include/anastasis.h
+++ b/src/include/anastasis.h
@@ -40,7 +40,7 @@ struct ANASTASIS_PaymentDetails
/**
* Payment order ID of a past payment
*/
- const char *payment_order_id;
+ char *payment_order_id;
};
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-anastasis] branch master updated (d069a9f -> 658dc77),
gnunet <=