From 8d08911cda2c598cd2ec7502fa4a683d85f40ffa Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 30 Oct 2017 12:11:51 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_rpc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 879a6d38e..be5b82e5e 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -209,7 +209,7 @@ cJSON *LP_NXT_redeems() { assetid = j64bits(item,"asset"); qty = j64bits(item,"quantityQNT"); - if ( (attach= jobj(item,"attachment")) != 0 && jint(item,"version.AssetTransfer") == 1 ) + if ( (attach= jobj(item,"attachment")) != 0 && jint(attach,"version.AssetTransfer") == 1 ) { printf("txnum.%llu (%s)\n",(long long)txnum,jprint(attach,0)); if ( (msgstr == 0 || msgstr[0] == 0) && jint(attach,"version.PrunablePlainMessage") == 1 ) @@ -224,8 +224,7 @@ cJSON *LP_NXT_redeems() if ( msgstr == 0 || msgstr[0] == 0 ) msgstr = jstr(attach,"message"); } - if ( msgstr != 0 ) - printf("%d: message.(%s) <- %.8f %llu\n",i,msgstr,dstr(qty),(long long)assetid); + printf("%d: message.(%s) <- %.8f %llu\n",i,msgstr,dstr(qty),(long long)assetid); if ( msgjson != 0 ) free_json(msgjson); }