Browse Source

Test

etomic
jl777 7 years ago
parent
commit
14adbda69d
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_tradebots.c

2
iguana/exchanges/LP_ordermatch.c

@ -304,7 +304,7 @@ struct LP_utxoinfo *LP_address_utxopair(int32_t iambob,struct LP_address_utxo **
}
}
} //else printf("cant find targetval2 %.8f\n",dstr(targetval2));
} else printf("failed ratio test %.8f\n",(double)up->U.value/targetval);
} //else printf("failed ratio test %.8f\n",(double)up->U.value/targetval);
} else if ( targetval != 0 && mini >= 0 )
printf("targetval %.8f mini.%d\n",dstr(targetval),mini);
} //else printf("no %s utxos pass LP_address_utxo_ptrs filter\n",coinaddr);

2
iguana/exchanges/LP_tradebots.c

@ -285,7 +285,7 @@ void LP_tradebot_timeslice(void *ctx,struct LP_tradebot *bot)
bot->dead = (uint32_t)time(NULL);
else if ( (bot->pendrelsum+bot->relsum) >= 0.99*bot->totalrelvolume-SMALLVAL || (bot->basesum+bot->pendbasesum) >= 0.99*bot->totalbasevolume-SMALLVAL )
bot->pause = (uint32_t)time(NULL);
printf("issued bot trade.%u\n",tradeid);
printf("issued bot trade.%u %s\n",tradeid,retstr);
free_json(retjson2);
free(retstr);
break;

Loading…
Cancel
Save