Browse Source

Test

etomic
jl777 7 years ago
parent
commit
78c0f5cd74
  1. 10
      iguana/exchanges/LP_rpc.c

10
iguana/exchanges/LP_rpc.c

@ -202,13 +202,13 @@ cJSON *LP_NXT_redeems()
msgjson = 0;
txnum = assetid = qty = 0;
item = jitem(array,i);
printf("%d: %s\n",i,jprint(item,0));
txnum = j64bits(item,"transaction");
assetid = j64bits(item,"asset");
qty = j64bits(item,"quantityQNT");
msgstr = jstr(item,"message");
//printf("%d: %s\n",i,jprint(item,0));
if ( (recv= jstr(item,"recipientRS")) != 0 && strcmp(recv,"NXT-MRBN-8DFH-PFMK-A4DBM") == 0 && jint(item,"version.AssetTransfer") == 1 )
{
txnum = j64bits(item,"transaction");
assetid = j64bits(item,"asset");
qty = j64bits(item,"quantityQNT");
msgstr = jstr(item,"message");
if ( (attach= jobj(item,"attachment")) != 0 )
{
printf("txnum.%llu (%s)\n",(long long)txnum,jprint(attach,0));

Loading…
Cancel
Save