diff --git a/iguana/exchanges/LP_instantdex.c b/iguana/exchanges/LP_instantdex.c index eb38c2f45..891304f29 100644 --- a/iguana/exchanges/LP_instantdex.c +++ b/iguana/exchanges/LP_instantdex.c @@ -88,7 +88,11 @@ void LP_instantdex_filescreate(char *coinaddr) jaddibits256(array,txid); if ( (txobj= LP_gettxout("KMD",coinaddr,txid,0)) != 0 ) free_json(txobj); - else continue; + else + { + char str[65]; printf("%s/v%d is already spent\n",bits256_str(str,txid),0); + continue; + } jaddibits256(newarray,txid); } fclose(fp); @@ -102,7 +106,7 @@ void LP_instantdex_filescreate(char *coinaddr) void LP_instantdex_depositadd(char *coinaddr,bits256 txid) { static FILE *depositsfp; - char fname[512]; bits256 prevtxid; cJSON *array,*txobj; int32_t i,n,iter; + char fname[512],str[65]; bits256 prevtxid; cJSON *array,*txobj; int32_t i,n,iter; if ( depositsfp == 0 ) { sprintf(fname,"%s/deposits.%s",GLOBAL_DBDIR,coinaddr), OS_compatible_path(fname); @@ -118,14 +122,16 @@ void LP_instantdex_depositadd(char *coinaddr,bits256 txid) for (i=0; i