jl777 7 years ago
parent
commit
34d4d38b41
  1. 4
      iguana/exchanges/LP_utxo.c
  2. 4
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_utxo.c

@ -596,14 +596,14 @@ int32_t LP_numconfirms(char *symbol,char *coinaddr,bits256 txid,int32_t vout,int
numconfirms = jint(txobj,"confirmations");
free_json(txobj);
}
else if ( mempool != 0 && LP_mempoolscan(symbol,txid) >= 0 )
if ( mempool != 0 && LP_mempoolscan(symbol,txid) >= 0 )
numconfirms = 0;
}
else
{
if ( (ht= LP_txheight(coin,txid)) > 0 && ht <= coin->height )
numconfirms = (LP_getheight(coin) - ht + 1);
else if ( mempool != 0 )
if ( mempool != 0 )
{
if ( LP_waitmempool(symbol,coinaddr,txid,vout,30) >= 0 )
numconfirms = 0;

4
iguana/exchanges/LP_utxos.c

@ -323,12 +323,12 @@ struct LP_utxoinfo *LP_utxoadd(int32_t iambob,char *symbol,bits256 txid,int32_t
printf("iambob.%d utxoadd %s inactive.%u got ineligible txid value %.8f:%.8f, value2 %.8f:%.8f, tmpsatoshis %.8f\n",iambob,symbol,coin->inactive,dstr(value),dstr(val),dstr(value2),dstr(val2),dstr(tmpsatoshis));
return(0);
}
if ( (numconfirms= LP_numconfirms(symbol,coinaddr,txid,vout,0)) <= 0 )
if ( (numconfirms= LP_numconfirms(symbol,coinaddr,txid,vout,1)) <= 0 )
{
printf("LP_utxoadd reject numconfirms.%d %s.%s\n",numconfirms,symbol,bits256_str(str,txid));
return(0);
}
if ( (numconfirms= LP_numconfirms(symbol,coinaddr,txid2,vout2,0)) <= 0 )
if ( (numconfirms= LP_numconfirms(symbol,coinaddr,txid2,vout2,1)) <= 0 )
{
printf("LP_utxoadd reject2 numconfirms.%d\n",numconfirms);
return(0);

Loading…
Cancel
Save