Browse Source

Test

etomic
jl777 8 years ago
parent
commit
66d8c21ece
  1. 8
      iguana/exchanges/LP_utxos.c

8
iguana/exchanges/LP_utxos.c

@ -317,7 +317,7 @@ int32_t LP_iseligible(uint64_t *valp,uint64_t *val2p,int32_t iambob,char *symbol
} // else printf("no val2\n"); } // else printf("no val2\n");
} }
// char str[65],str2[65]; printf("spent.%d %s txid or value %.8f < %.8f or val2 %.8f < %.8f, %s/v%d %s/v%d or < 10x txfee %.8f\n",iambob,symbol,dstr(val),dstr(satoshis),dstr(val2),dstr(threshold),bits256_str(str,txid),vout,bits256_str(str2,txid2),vout2,dstr(txfee)); // char str[65],str2[65]; printf("spent.%d %s txid or value %.8f < %.8f or val2 %.8f < %.8f, %s/v%d %s/v%d or < 10x txfee %.8f\n",iambob,symbol,dstr(val),dstr(satoshis),dstr(val2),dstr(threshold),bits256_str(str,txid),vout,bits256_str(str2,txid2),vout2,dstr(txfee));
/*for (iter=0; iter<2; iter++) for (iter=0; iter<2; iter++)
{ {
if ( (utxo= LP_utxofind(iter,txid,vout)) != 0 ) if ( (utxo= LP_utxofind(iter,txid,vout)) != 0 )
{ {
@ -343,7 +343,7 @@ int32_t LP_iseligible(uint64_t *valp,uint64_t *val2p,int32_t iambob,char *symbol
if ( utxo->T.spentflag == 0 ) if ( utxo->T.spentflag == 0 )
utxo->T.spentflag = (uint32_t)time(NULL); utxo->T.spentflag = (uint32_t)time(NULL);
} }
}*/ }
*valp = val; *valp = val;
*val2p = val2; *val2p = val2;
return(0); return(0);
@ -855,9 +855,9 @@ uint64_t LP_privkey_init(int32_t mypubsock,struct iguana_info *coin,bits256 mypr
depositval = values[i]; depositval = values[i];
values[i] = 0, used++; values[i] = 0, used++;
if ( iambob == 0 ) if ( iambob == 0 )
targetval = (depositval / 776) + 2*txfee; targetval = (depositval / 776) + txfee;
else targetval = (depositval / 9) * 8 + 2*txfee; else targetval = (depositval / 9) * 8 + 2*txfee;
if ( depositval < (1+LP_MINSIZE_TXFEEMULT)*txfee && targetval < (1+LP_MINSIZE_TXFEEMULT)*txfee ) if ( depositval < (1+LP_MINSIZE_TXFEEMULT)*txfee )
continue; continue;
printf("iambob.%d i.%d %.8f target %.8f\n",iambob,i,dstr(depositval),dstr(targetval)); printf("iambob.%d i.%d %.8f target %.8f\n",iambob,i,dstr(depositval),dstr(targetval));
i = -1; i = -1;

Loading…
Cancel
Save