Browse Source

Test

etomic
jl777 7 years ago
parent
commit
b95207257e
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 6
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_ordermatch.c

@ -417,7 +417,7 @@ struct LP_utxoinfo *LP_address_myutxopair(struct LP_utxoinfo *butxo,int32_t iamb
{
int32_t i;
for (i=0; i<m; i++)
if ( utxos[i]->U.value >= targetval )
//if ( utxos[i]->U.value >= targetval )
printf("%.8f ",dstr(utxos[i]->U.value));
printf("targetval %.8f vol %.8f price %.8f txfee %.8f %s %s\n",dstr(targetval),relvolume,price,dstr(fee),coin->symbol,coinaddr);
}

6
iguana/exchanges/LP_utxo.c

@ -484,7 +484,11 @@ struct LP_address *LP_address_utxo_reset(struct iguana_info *coin)
LP_address_utxoadd(now,"withdraw",coin,coin->smartaddr,txid,vout,value,height,-1);
if ( (up= LP_address_utxofind(coin,coin->smartaddr,txid,vout)) == 0 )
printf("couldnt find just added %s/%d ht.%d %.8f\n",bits256_str(str,txid),vout,height,dstr(value));
else m++;
else
{
m++;
printf("%.8f ",dstr(value));
}
}
printf("added %d from listunspents\n",m);
}

Loading…
Cancel
Save