[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: get test_auditor to pass
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: get test_auditor to pass |
Date: |
Thu, 14 Sep 2023 19:48:38 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new c573ebd2 get test_auditor to pass
c573ebd2 is described below
commit c573ebd2fd16c113e175e699d3761d8f7ad9322e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Sep 14 19:48:26 2023 +0200
get test_auditor to pass
---
src/auditordb/auditor-0001.sql | 2 +-
src/exchangedb/exchange_do_select_deposits_missing_wire.sql | 3 ++-
src/exchangedb/pg_select_batch_deposits_missing_wire.c | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/auditordb/auditor-0001.sql b/src/auditordb/auditor-0001.sql
index 2fe322b1..a167e855 100644
--- a/src/auditordb/auditor-0001.sql
+++ b/src/auditordb/auditor-0001.sql
@@ -313,7 +313,7 @@ COMMENT ON TABLE auditor_predicted_result
CREATE TABLE IF NOT EXISTS auditor_pending_deposits
(master_pub BYTEA NOT NULL CONSTRAINT master_pub_ref REFERENCES
auditor_exchanges(master_pub) ON DELETE CASCADE
,total_amount taler_amount NOT NULL
- ,wire_target_h_payto BYTEA CHECK (LENGTH(wire_target_h_payto)=64)
+ ,wire_target_h_payto BYTEA CHECK (LENGTH(wire_target_h_payto)=32)
,batch_deposit_serial_id INT8 NOT NULL
,deadline INT8 NOT NULL
,PRIMARY KEY(master_pub, batch_deposit_serial_id)
diff --git a/src/exchangedb/exchange_do_select_deposits_missing_wire.sql
b/src/exchangedb/exchange_do_select_deposits_missing_wire.sql
index 40ebd8b8..3d44a58c 100644
--- a/src/exchangedb/exchange_do_select_deposits_missing_wire.sql
+++ b/src/exchangedb/exchange_do_select_deposits_missing_wire.sql
@@ -28,7 +28,8 @@ DECLARE
,wire_target_h_payto
,wire_deadline
FROM batch_deposits
- WHERE batch_deposit_serial_id > in_min_serial_id;
+ WHERE batch_deposit_serial_id > in_min_serial_id
+ ORDER BY batch_deposit_serial_id ASC;
DECLARE
my_total_val INT8; -- all deposits without wire
DECLARE
diff --git a/src/exchangedb/pg_select_batch_deposits_missing_wire.c
b/src/exchangedb/pg_select_batch_deposits_missing_wire.c
index 1ab0a4b3..8f966326 100644
--- a/src/exchangedb/pg_select_batch_deposits_missing_wire.c
+++ b/src/exchangedb/pg_select_batch_deposits_missing_wire.c
@@ -67,7 +67,7 @@ missing_wire_cb (void *cls,
struct MissingWireContext *mwc = cls;
struct PostgresClosure *pg = mwc->pg;
- while (0 < num_results)
+ for (unsigned int i = 0; i<num_results; i++)
{
uint64_t batch_deposit_serial_id;
struct GNUNET_TIME_Timestamp deadline;
@@ -88,7 +88,7 @@ missing_wire_cb (void *cls,
if (GNUNET_OK !=
GNUNET_PQ_extract_result (result,
rs,
- --num_results))
+ i))
{
GNUNET_break (0);
mwc->status = GNUNET_SYSERR;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: get test_auditor to pass,
gnunet <=