Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c6c0b0f0af
  1. 2
      iguana/exchanges/LP_include.h
  2. 2
      iguana/exchanges/LP_portfolio.c
  3. 2
      iguana/exchanges/LP_tradebots.c
  4. 2
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_include.h

@ -39,7 +39,7 @@ void emscripten_usleep(int32_t x); // returns immediate, no sense for sleeping
#define LP_HTTP_TIMEOUT 3 // 1 is too small due to edge cases of time(NULL)
#define LP_AUTOTRADE_TIMEOUT 30
#define ELECTRUM_TIMEOUT 5
#define ELECTRUM_TIMEOUT 15
#define LP_ELECTRUM_KEEPALIVE 60
#define LP_ELECTRUM_MAXERRORS 777
#define LP_MEMPOOL_TIMEINCR 10

2
iguana/exchanges/LP_portfolio.c

@ -647,7 +647,7 @@ void prices_loop(void *ctx)
}
free(retstr);
}
sleep(10);
sleep(30);
}
}

2
iguana/exchanges/LP_tradebots.c

@ -611,7 +611,7 @@ char *LP_tradebot_resume(void *ctx,int32_t pubsock,cJSON *argjson,uint32_t botid
char *LP_istradebots_command(void *ctx,int32_t pubsock,char *method,cJSON *argjson)
{
uint32_t botid;
printf("LP_istradebots_command check %s\n",method);
//printf("LP_istradebots_command check %s\n",method);
if ( strncmp("bot_",method,strlen("bot_")) != 0 )
return(0);
if ( strcmp(method,"bot_list") == 0 )

2
iguana/exchanges/LP_transaction.c

@ -1059,7 +1059,7 @@ char *LP_createrawtransaction(cJSON **txobjp,int32_t *numvinsp,struct iguana_inf
if ( numvins <= 0 || total < amount )
{
printf("change %.8f = total %.8f - amount %.8f, adjust %.8f numvouts.%d, txfee %.8f\n",dstr(change),dstr(total),dstr(amount),dstr(adjust),numvouts,dstr(txfee));
printf("not enough inputs for amount %.8f < %.8f txfee %.8f\n",dstr(total),dstr(amount),dstr(txfee));
printf("not enough inputs %.8f < for amount %.8f txfee %.8f\n",dstr(total),dstr(amount),dstr(txfee));
return(0);
}
change = (total - amount);

Loading…
Cancel
Save