Browse Source

Test

etomic
jl777 7 years ago
parent
commit
55ce2b6394
  1. 2
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_network.c
  3. 2
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_commands.c

@ -265,6 +265,8 @@ dividends(coin, height, <args>)\n\
//*
if ( (ptr= LP_coinsearch(coin)) != 0 )
{
if ( ptr->userpass[0] == 0 )
return(clonestr("{\"error\":\"couldnt find coin locally installed\"}"));
if ( LP_conflicts_find(ptr) == 0 )
{
ptr->inactive = 0;

2
iguana/exchanges/LP_network.c

@ -177,7 +177,7 @@ else printf("%d %p qsent %u msglen.%d peerind.%d (%s)\n",n,ptr,ptr->crc32,ptr->m
printf("found.%u Q.%d err.%d match.%d\n",ptr->crc32,LP_Qenqueued,LP_Qerrors,LP_Qfound);
flag = 1;
}
else
else if ( 0 ) // too much beyond duplicate filter when network is busy
{
printf("couldnt find.%u peerind.%d Q.%d err.%d match.%d\n",ptr->crc32,ptr->peerind,LP_Qenqueued,LP_Qerrors,LP_Qfound);
ptr->peerind++;

2
iguana/exchanges/LP_utxo.c

@ -193,12 +193,12 @@ struct LP_address_utxo *LP_address_utxofind(struct iguana_info *coin,char *coina
int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid,int32_t vout,uint64_t value,int32_t height,int32_t spendheight)
{
struct LP_address *ap; cJSON *txobj; struct LP_address_utxo *up,*tmp; int32_t flag,retval = 0; char str[65];
printf("%s add addr.%s ht.%d\n",coin->symbol,coinaddr,height);
if ( coin == 0 )
return(0);
if ( spendheight > 0 ) // dont autocreate entries for spends we dont care about
ap = LP_addressfind(coin,coinaddr);
else ap = LP_address(coin,coinaddr);
printf("%s add addr.%s ht.%d ap.%p\n",coin->symbol,coinaddr,height,ap);
if ( ap != 0 )
{
flag = 0;

Loading…
Cancel
Save