From 72f5757560a2c3e5017df82f99d3659999ce7b7b Mon Sep 17 00:00:00 2001
From: jl777 <jameslee777@yahoo.com>
Date: Sun, 28 Jan 2018 13:29:44 +0400
Subject: [PATCH] Test

---
 iguana/exchanges/LP_NXT.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/iguana/exchanges/LP_NXT.c b/iguana/exchanges/LP_NXT.c
index 3813df1b7..d981a9fc1 100644
--- a/iguana/exchanges/LP_NXT.c
+++ b/iguana/exchanges/LP_NXT.c
@@ -213,6 +213,7 @@ cJSON *LP_NXT_redeems()
     printf("calling (%s)\n",url);
     if ( (retstr= issue_curlt(url,LP_HTTP_TIMEOUT)) != 0 )
     {
+        printf("got.(%s)\n",retstr);
         if ( (retjson= cJSON_Parse(retstr)) != 0 )
         {
             if ( (array= jarray(&numtx,retjson,"transactions")) != 0 )
@@ -226,7 +227,7 @@ cJSON *LP_NXT_redeems()
                     txnum = j64bits(item,"transaction");
                     if ( txnum == txnum_marker )
                         past_marker = 1;
-                    printf("%d: %s\n",i,jprint(item,0));
+                    //printf("%d: %s\n",i,jprint(item,0));
                     if ( (recv= jstr(item,"recipientRS")) != 0 && strcmp(recv,"NXT-MRBN-8DFH-PFMK-A4DBM") == 0 )
                     {
                         if ( (attach= jobj(item,"attachment")) != 0 && jint(attach,"version.AssetTransfer") == 1 )
@@ -298,7 +299,7 @@ cJSON *LP_NXT_redeems()
             //free_json(retjson);
         }
         free(retstr);
-    }
+    } else printf("null return from NXT api call\n");
     printf("\nTotal redeemed.%d\n",numtx);
     for (past_marker=0; past_marker<2; past_marker++)
     {