gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -misc minor fixes


From: gnunet
Subject: [taler-exchange] branch master updated: -misc minor fixes
Date: Sat, 17 Sep 2022 23:27:35 +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 b4b857ab -misc minor fixes
b4b857ab is described below

commit b4b857abeaa0447b8dd4626f303ce7cdb728f0b7
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Sep 17 23:27:29 2022 +0200

    -misc minor fixes
---
 src/auditor/test-auditor.sh  | 29 ++++++++++++++++++-----------
 src/util/wallet_signatures.c |  4 ++++
 2 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh
index 4e51eca7..d1e24c19 100755
--- a/src/auditor/test-auditor.sh
+++ b/src/auditor/test-auditor.sh
@@ -61,18 +61,8 @@ function exit_fail() {
     exit 1
 }
 
-# Cleanup exchange and libeufin between runs.
-function cleanup()
+function stop_libeufin()
 {
-    if test ! -z ${EPID:-}
-    then
-        echo -n "Stopping exchange $EPID..."
-        kill -TERM $EPID
-        wait $EPID
-        echo " DONE"
-        unset EPID
-    fi
-
     echo "killing libeufin..."
     if test -f libeufin-sandbox.pid
     then
@@ -84,6 +74,21 @@ function cleanup()
         echo "Killing libeufin nexus"
         kill `cat libeufin-nexus.pid 2> /dev/null` &> /dev/null || true
     fi
+}
+
+# Cleanup exchange and libeufin between runs.
+function cleanup()
+{
+    if test ! -z ${EPID:-}
+    then
+        echo -n "Stopping exchange $EPID..."
+        kill -TERM $EPID
+        wait $EPID
+        echo " DONE"
+        unset EPID
+    fi
+
+    stop_libeufin
     echo DONE
 }
 
@@ -1657,10 +1662,12 @@ function test_27() {
     WTID=`echo SELECT wtid FROM TalerRequestedPayments WHERE id=1 | sqlite3 
$DB.sqlite3`
     echo WTID=$WTID
     OTHER_IBAN=`echo -e "SELECT iban FROM BankAccounts WHERE label='fortytwo'" 
| sqlite3 $DB.sqlite3`
+    stop_libeufin
     # 'rawConfirmation' is set to 2 here, that doesn't
     # point to any record.  That's only needed to set a non null value.
     echo -e "INSERT INTO PaymentInitiations 
(bankAccount,preparationDate,submissionDate,sum,currency,endToEndId,paymentInformationId,instructionId,subject,creditorIban,creditorBic,creditorName,submitted,messageId,rawConfirmation)
 VALUES (1,$(date +%s),$(expr $(date +%s) + 
2),10,'TESTKUDOS','NOTGIVEN','unused','unused','$WTID 
http://exchange.example.com/','$OTHER_IBAN','SANDBOXX','Forty 
Two','unused',1,2)" | sqlite3 $DB.sqlite3
     echo -e "INSERT INTO TalerRequestedPayments 
(facade,payment,requestUid,amount,exchangeBaseUrl,wtid,creditAccount) VALUES 
(1,2,'unused','TESTKUDOS:1','http://exchange.example.com/','$WTID','payto://iban/SANDBOXX/$OTHER_IBAN?receiver-name=Forty+Two')"
 | sqlite3 $DB.sqlite3
+    launch_libeufin
     audit_only
     post_audit
 
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c
index f375aab4..64c9ebcb 100644
--- a/src/util/wallet_signatures.c
+++ b/src/util/wallet_signatures.c
@@ -1195,6 +1195,8 @@ TALER_wallet_account_merge_verify (
 
 void
 TALER_wallet_account_close_sign (
+  // FIXME: add max amount (optional)
+  // timestamp, target account (optional)
   const struct TALER_ReservePrivateKeyP *reserve_priv,
   struct TALER_ReserveSignatureP *reserve_sig)
 {
@@ -1212,6 +1214,8 @@ TALER_wallet_account_close_sign (
 
 enum GNUNET_GenericReturnValue
 TALER_wallet_account_close_verify (
+  // FIXME: add max amount (optional),
+  // timestamp, target account (optional)
   const struct TALER_ReservePublicKeyP *reserve_pub,
   const struct TALER_ReserveSignatureP *reserve_sig)
 {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]