Browse Source

Test

etomic
jl777 7 years ago
parent
commit
7b8cb29c94
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 1
      iguana/exchanges/LP_remember.c
  3. 4
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_nativeDEX.c

@ -19,6 +19,8 @@
// marketmaker // marketmaker
// //
// dynamic adding of new LP node // dynamic adding of new LP node
// swap started event for bot
// lack of full depth
// withdraw too big // withdraw too big
// bot status 1600% ? // bot status 1600% ?
// BCH signing // BCH signing

1
iguana/exchanges/LP_remember.c

@ -1115,6 +1115,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
if ( (fp= fopen(fname,"wb")) != 0 ) if ( (fp= fopen(fname,"wb")) != 0 )
{ {
jaddstr(item,"method","tradestatus"); jaddstr(item,"method","tradestatus");
jaddstr(item,"gui",G.gui);
itemstr = jprint(item,0); itemstr = jprint(item,0);
fprintf(fp,"%s\n",itemstr); fprintf(fp,"%s\n",itemstr);
LP_tradecommand_log(item); LP_tradecommand_log(item);

4
iguana/exchanges/LP_socket.c

@ -1049,8 +1049,8 @@ cJSON *LP_electrumserver(struct iguana_info *coin,char *ipaddr,uint16_t port)
struct electrum_info *ep; int32_t kickval,already; cJSON *retjson; struct electrum_info *ep; int32_t kickval,already; cJSON *retjson;
if ( ipaddr == 0 || ipaddr[0] == 0 || port == 0 ) if ( ipaddr == 0 || ipaddr[0] == 0 || port == 0 )
{ {
//coin->electrum = 0; coin->electrum = 0;
printf("would have disabled %s electrum here\n",coin->symbol); //printf("would have disabled %s electrum here\n",coin->symbol);
return(cJSON_Parse("{\"result\":\"success\",\"status\":\"electrum mode disabled, now in native coin mode\"}")); return(cJSON_Parse("{\"result\":\"success\",\"status\":\"electrum mode disabled, now in native coin mode\"}"));
} }
retjson = cJSON_CreateObject(); retjson = cJSON_CreateObject();

Loading…
Cancel
Save