Browse Source

Fix crash

etomic
jl777 7 years ago
parent
commit
b4fa898c47
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_signatures.c

2
iguana/exchanges/LP_nativeDEX.c

@ -754,7 +754,7 @@ void LP_price_broadcastloop(void *ctx)
continue;
if ( basepp != 0 && relpp != 0 && (price= relpp->myprices[basepp->ind]) > SMALLVAL)
{
printf("automated price broadcast %s/%s %.8f\n",relpp->symbol,basepp->symbol,price);
//printf("automated price broadcast %s/%s %.8f\n",relpp->symbol,basepp->symbol,price);
LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,relpp->symbol,basepp->symbol,price);
}
}

2
iguana/exchanges/LP_signatures.c

@ -204,7 +204,7 @@ char *LP_quotereceived(cJSON *argjson)
int32_t LP_bitcoinsig_add(cJSON *item,bits256 priv,uint8_t *pubsecp,bits256 sighash)
{
static void *ctx; int32_t i,j,siglen; uint8_t pub33[33],sig[65]; char sigstr[128];
static void *ctx; int32_t i,j,siglen; uint8_t pub33[33],sig[65]; char sigstr[256];
if ( ctx == 0 )
ctx = bitcoin_ctx();
for (j=0; j<100; j++)

Loading…
Cancel
Save