jl777 7 years ago
parent
commit
e5067302a8
  1. 5
      iguana/exchanges/LP_coins.c

5
iguana/exchanges/LP_coins.c

@ -300,6 +300,7 @@ struct iguana_info *LP_coinadd(struct iguana_info *cdata)
uint16_t LP_coininit(struct iguana_info *coin,char *symbol,char *name,char *assetname,int32_t isPoS,uint16_t port,uint8_t pubtype,uint8_t p2shtype,uint8_t wiftype,uint64_t txfee,double estimatedrate,int32_t longestchain,uint8_t wiftaddr,uint8_t taddr,uint16_t busport,char *confpath)
{
static void *ctx;
char *name2;
printf("clear coin\n");
memset(coin,0,sizeof(*coin));
@ -318,7 +319,9 @@ uint16_t LP_coininit(struct iguana_info *coin,char *symbol,char *name,char *asse
printf("call coinbus\n");
coin->bussock = LP_coinbus(busport);
printf("call bitcoin_ctx\n");
coin->ctx = bitcoin_ctx();
if ( ctx == 0 )
ctx = bitcoin_ctx();
coin->ctx = ctx;
printf("back from bitcoin_ctx\n");
if ( assetname != 0 && strcmp(name,assetname) == 0 )
{

Loading…
Cancel
Save