Browse Source

Test

etomic
jl777 8 years ago
parent
commit
d55d3a8007
  1. 6
      iguana/exchanges/LP_utxos.c

6
iguana/exchanges/LP_utxos.c

@ -258,13 +258,13 @@ char *LP_utxos(int32_t iambob,struct LP_peerinfo *mypeer,char *symbol,int32_t la
lastn = LP_PROPAGATION_SLACK * 2;
if ( lastn >= n )
firsti = -1;
else firsti = (n - lastn);
printf("LP_utxos iambob.%d symbol.%s lastn.%d\n",iambob,symbol==0?"":symbol,lastn);
else firsti = (lastn - n);
printf("LP_utxos iambob.%d symbol.%s firsti.%d lastn.%d\n",iambob,symbol==0?"":symbol,firsti,lastn);
HASH_ITER(hh,LP_utxoinfos[iambob],utxo,tmp)
{
if ( i++ < firsti )
continue;
if ( (symbol == 0 || symbol[0] == 0 || strcmp(symbol,utxo->coin) == 0) && utxo->T.spentflag == 0 )//&& LP_ismine(utxo) > 0 )
if ( (symbol == 0 || symbol[0] == 0 || strcmp(symbol,utxo->coin) == 0) && utxo->T.spentflag == 0 )
{
jaddi(utxosjson,LP_utxojson(utxo));
}

Loading…
Cancel
Save