gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 01/07: Withdraw after payback.


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/07: Withdraw after payback.
Date: Fri, 18 May 2018 17:25:13 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

commit 8ad907782db1f2168776d5fa15c34b6462ab51e8
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri May 18 10:50:27 2018 +0200

    Withdraw after payback.
    
    This triggers the TALER_EXCHANGEDB_RO_PAYBACK_COIN
    case within the withdraw_transaction() handler.
---
 src/exchange-lib/test_exchange_api_new.c | 7 +++++++
 src/exchange/taler-exchange-aggregator.c | 1 +
 2 files changed, 8 insertions(+)

diff --git a/src/exchange-lib/test_exchange_api_new.c 
b/src/exchange-lib/test_exchange_api_new.c
index c5e62a0..1bbad66 100644
--- a/src/exchange-lib/test_exchange_api_new.c
+++ b/src/exchange-lib/test_exchange_api_new.c
@@ -625,6 +625,13 @@ run (void *cls,
                               "EUR:5.0",
                               MHD_HTTP_OK),
 
+    /* Re-withdraw from this reserve */
+    TALER_TESTING_cmd_withdraw_amount ("payback-withdraw-coin-2",
+                                       is->exchange,
+                                       "payback-create-reserve-1",
+                                       "EUR:1",
+                                       MHD_HTTP_OK),
+
     /**
      * Fill reserve with EUR:2.02, as withdraw fee is 1 ct per
      * config, then withdraw two coin, partially spend one, and
diff --git a/src/exchange/taler-exchange-aggregator.c 
b/src/exchange/taler-exchange-aggregator.c
index 805577a..b466a83 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -1124,6 +1124,7 @@ expired_reserve_cb (void *cls,
          reserve_pub,
          GNUNET_MIN (sizeof (wtid),
                      sizeof (*reserve_pub)));
+
   qs = db_plugin->insert_reserve_closed (db_plugin->cls,
                                         session,
                                         reserve_pub,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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