[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: errors
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: errors |
Date: |
Fri, 20 Nov 2020 15:04:08 +0100 |
This is an automated email from the git hooks/post-receive script.
ds-meister pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new c46164b errors
c46164b is described below
commit c46164b5e131b2055ea0451e343bbdbac7cf11f4
Author: Dominik Meister <dominik.meister@hotmail.ch>
AuthorDate: Fri Nov 20 15:04:02 2020 +0100
errors
---
src/backend/anastasis-httpd.c | 3 ---
src/backend/anastasis-httpd_truth.c | 23 +++++++++++------------
src/stasis/plugin_anastasis_postgres.c | 1 +
3 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index c665a77..1f81c2b 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -767,10 +767,7 @@ main (int argc,
of the way. Then throw that one away, and force
the ANASTASIS defaults to be used! */
(void) TALER_project_data_default ();
- fprintf (stderr, "Here with PID %d\n", (int) getpid ());
GNUNET_OS_init (ANASTASIS_project_data_default ());
- fprintf (stderr, "Here with PID %d, project is %s\n", (int) getpid (),
- GNUNET_OS_project_data_get ()->project_dirname);
res = GNUNET_PROGRAM_run (argc, argv,
"anastasis-httpd",
"Anastasis HTTP interface",
diff --git a/src/backend/anastasis-httpd_truth.c
b/src/backend/anastasis-httpd_truth.c
index c6f19e4..a281e50 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -811,6 +811,17 @@ AH_handler_truth_get (struct MHD_Connection *connection,
struct GNUNET_HashCode hc;
enum ANASTASIS_DB_QueryStatus qs;
+ if (0 == strcmp ("question",
+ method))
+ {
+ gc->challenge_cost = AH_question_cost;
+ }
+ if (0 == strcmp ("file",
+ method))
+ {
+ gc->challenge_cost = AH_file_cost;
+ }
+
if (gc->payment_identifier_provided)
{
// check if payment identifier is valid (existing and paid)
@@ -858,18 +869,6 @@ AH_handler_truth_get (struct MHD_Connection *connection,
__LINE__,
TALER_B2S (&gc->payment_identifier));
-
- if (0 == strcmp ("question",
- method))
- {
- gc->challenge_cost = AH_question_cost;
- }
- if (0 == strcmp ("file",
- method))
- {
- gc->challenge_cost = AH_file_cost;
- }
-
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"At %s:%d Payment is required, starting payment process\n",
__FILE__,
diff --git a/src/stasis/plugin_anastasis_postgres.c
b/src/stasis/plugin_anastasis_postgres.c
index 09a98d9..c10b57d 100644
--- a/src/stasis/plugin_anastasis_postgres.c
+++ b/src/stasis/plugin_anastasis_postgres.c
@@ -1763,6 +1763,7 @@ postgres_lookup_challenge_payment (void *cls,
timestamp,
order_id,
&amount);
+ return ANASTASIS_DB_STATUS_SUCCESS_ONE_RESULT;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.