Browse Source

Test

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

6
iguana/exchanges/LP_ordermatch.c

@ -413,11 +413,11 @@ struct LP_utxoinfo *LP_address_myutxopair(struct LP_utxoinfo *butxo,int32_t iamb
{ {
if ( (m= LP_address_utxo_ptrs(coin,iambob,utxos,max,ap,coinaddr)) > 1 ) if ( (m= LP_address_utxo_ptrs(coin,iambob,utxos,max,ap,coinaddr)) > 1 )
{ {
if ( 1 ) if ( 0 )
{ {
int32_t i; int32_t i;
for (i=0; i<m; 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("%.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); printf("targetval %.8f vol %.8f price %.8f txfee %.8f %s %s\n",dstr(targetval),relvolume,price,dstr(fee),coin->symbol,coinaddr);
} }
@ -432,7 +432,7 @@ struct LP_utxoinfo *LP_address_myutxopair(struct LP_utxoinfo *butxo,int32_t iamb
if ( (double)up->U.value/targetval < ratio-1 ) if ( (double)up->U.value/targetval < ratio-1 )
{ {
if ( 1 ) if ( 0 )
{ {
int32_t i; int32_t i;
for (i=0; i<m; i++) for (i=0; i<m; i++)

4
iguana/exchanges/LP_utxo.c

@ -487,10 +487,10 @@ struct LP_address *LP_address_utxo_reset(struct iguana_info *coin)
else else
{ {
m++; m++;
printf("%.8f ",dstr(value)); //printf("%.8f ",dstr(value));
} }
} }
printf("added %d from listunspents\n",m); //printf("added %d from listunspents\n",m);
} }
free_json(array); free_json(array);
} }

Loading…
Cancel
Save