Browse Source

Test

etomic
jl777 8 years ago
parent
commit
7113bd8450
  1. 4
      iguana/exchanges/LP_utxos.c

4
iguana/exchanges/LP_utxos.c

@ -779,7 +779,8 @@ cJSON *LP_inventory(char *symbol,int32_t iambob)
else myipaddr = "127.0.0.1";
HASH_ITER(hh,LP_utxoinfos[iambob],utxo,tmp)
{
char str[65]; printf("iambob.%d iterate %s\n",iambob,bits256_str(str,LP_mypub25519));
char str[65];
printf("iambob.%d iterate %s\n",iambob,bits256_str(str,LP_mypub25519));
if ( LP_isunspent(utxo) != 0 && strcmp(symbol,utxo->coin) == 0 && utxo->iambob == iambob && LP_ismine(utxo) > 0 )
{
u = (iambob != 0) ? utxo->deposit : utxo->fee;
@ -787,6 +788,7 @@ cJSON *LP_inventory(char *symbol,int32_t iambob)
{
if ( utxo->T.spentflag == 0 )
utxo->T.spentflag = (uint32_t)time(NULL);
printf("ineligible %.8f %.8f\n",dstr(val),dstr(val2));
continue;
}
if ( iambob != 0 )

Loading…
Cancel
Save