jl777 7 years ago
parent
commit
27e17866e4
  1. 3
      iguana/exchanges/LP_coins.c
  2. 2
      iguana/exchanges/LP_nativeDEX.c

3
iguana/exchanges/LP_coins.c

@ -298,7 +298,6 @@ uint16_t LP_coininit(struct iguana_info *coin,char *symbol,char *name,char *asse
{ {
static void *ctx; static void *ctx;
char *name2; char *name2;
printf("clear coin\n");
memset(coin,0,sizeof(*coin)); memset(coin,0,sizeof(*coin));
safecopy(coin->symbol,symbol,sizeof(coin->symbol)); safecopy(coin->symbol,symbol,sizeof(coin->symbol));
coin->updaterate = (uint32_t)time(NULL); coin->updaterate = (uint32_t)time(NULL);
@ -439,7 +438,7 @@ struct iguana_info *LP_coincreate(cJSON *item)
} }
} else coin->inactive = 0; } else coin->inactive = 0;
} }
if ( coin != 0 && coin->inactive != 0 ) if ( 0 && coin != 0 && coin->inactive != 0 )
printf("LPnode.%d %s inactive.%u %p vs %p\n",IAMLP,coin->symbol,coin->inactive,assetname,name); printf("LPnode.%d %s inactive.%u %p vs %p\n",IAMLP,coin->symbol,coin->inactive,assetname,name);
return(0); return(0);
} }

2
iguana/exchanges/LP_nativeDEX.c

@ -1037,6 +1037,8 @@ void LP_fromjs_iter()
char *bitcoind_RPC(char **retstrp,char *debugstr,char *url,char *userpass,char *command,char *params,int32_t timeout) char *bitcoind_RPC(char **retstrp,char *debugstr,char *url,char *userpass,char *command,char *params,int32_t timeout)
{ {
static uint32_t counter; char fname[512],*retstr; long fsize; static uint32_t counter; char fname[512],*retstr; long fsize;
if ( strncmp("http://",url,strlen("http://")) != 0 )
return(clonestr("{\"error\":\"only http allowed\"}"));
sprintf(fname,"bitcoind_RPC/req.%u",counter); sprintf(fname,"bitcoind_RPC/req.%u",counter);
counter++; counter++;
printf("issue.(%s)\n",url); printf("issue.(%s)\n",url);

Loading…
Cancel
Save