Browse Source

Test

etomic
jl777 8 years ago
parent
commit
52c9bf1c90
  1. 7
      iguana/exchanges/LP_remember.c

7
iguana/exchanges/LP_remember.c

@ -535,7 +535,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
sprintf(fname,"%s/SWAPS/%u-%u.%s",GLOBAL_DBDIR,requestid,quoteid,txnames[i]), OS_compatible_path(fname); sprintf(fname,"%s/SWAPS/%u-%u.%s",GLOBAL_DBDIR,requestid,quoteid,txnames[i]), OS_compatible_path(fname);
if ( (fstr= OS_filestr(&fsize,fname)) != 0 ) if ( (fstr= OS_filestr(&fsize,fname)) != 0 )
{ {
if ( finishedflag == 0 ) if ( 0 && finishedflag == 0 )
printf("%s\n",fname); printf("%s\n",fname);
//printf("%s -> (%s)\n",fname,fstr); //printf("%s -> (%s)\n",fname,fstr);
if ( (txobj= cJSON_Parse(fstr)) != 0 ) if ( (txobj= cJSON_Parse(fstr)) != 0 )
@ -600,12 +600,13 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
} }
free_json(sentobj); free_json(sentobj);
} }
printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value)); if ( 0 && finishedflag == 0 )
printf("%s %s %.8f\n",txnames[i],bits256_str(str,txid),dstr(value));
} }
} }
} //else printf("no symbol\n"); } //else printf("no symbol\n");
free(fstr); free(fstr);
} else if ( finishedflag == 0 ) } else if ( 0 && finishedflag == 0 )
printf("%s not finished\n",fname); printf("%s not finished\n",fname);
} }
//printf("alicepayment.%s bobpayment.%s bobdeposit.%s\n",alicepaymentaddr,bobpaymentaddr,bobdepositaddr); //printf("alicepayment.%s bobpayment.%s bobdeposit.%s\n",alicepaymentaddr,bobpaymentaddr,bobdepositaddr);

Loading…
Cancel
Save