gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] 08/09: previous change continued.


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] 08/09: previous change continued.
Date: Thu, 10 May 2018 22:18:52 +0200

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

marcello pushed a commit to branch master
in repository merchant.

commit f30f7114e089d53a5e1391ffe41acf121ca0d5cd
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 10 22:10:38 2018 +0200

    previous change continued.
    
    Providing exchange url as trait as well.
---
 src/lib/testing_api_cmd_track.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/testing_api_cmd_track.c b/src/lib/testing_api_cmd_track.c
index b56ddc3..0fce026 100644
--- a/src/lib/testing_api_cmd_track.c
+++ b/src/lib/testing_api_cmd_track.c
@@ -52,6 +52,8 @@ struct TrackTransactionState
    * make the paygen work.  */
   struct TALER_WireTransferIdentifierRawP wtid; 
 
+  const char *exchange_url;
+
 };
 
 struct TrackTransferState
@@ -101,6 +103,8 @@ track_transaction_cb (void *cls,
 
     GNUNET_JSON_spec_fixed_auto ("wtid",
                                  &tts->wtid),
+    GNUNET_JSON_spec_string ("exchange",
+                             &tts->exchange_url),
     GNUNET_JSON_spec_end ()
   };
 
@@ -325,6 +329,7 @@ track_transaction_cleanup (void *cls,
                 " did not complete\n");
     TALER_MERCHANT_track_transaction_cancel (tts->tth);
   }
+  /* WARNING: who frees tts->exchange_url ? */
   GNUNET_free (tts);
 }
 
@@ -339,6 +344,7 @@ track_transaction_traits (void *cls,
 
   struct TALER_TESTING_Trait traits[] = {
     TALER_TESTING_make_trait_wtid (0, &tts->wtid),
+    TALER_TESTING_make_trait_url (0, tts->exchange_url),
     TALER_TESTING_trait_end ()
   };
 

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



reply via email to

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