jl777 7 years ago
parent
commit
e0b2d43a2d
  1. 2
      iguana/exchanges/LP_include.h
  2. 5
      iguana/exchanges/LP_utxo.c

2
iguana/exchanges/LP_include.h

@ -219,7 +219,7 @@ struct LP_address_utxo
{
struct LP_address_utxo *next,*prev;
struct _LP_utxoinfo U;
uint32_t height,SPV,spendheight;
uint32_t SPV,spendheight;
};
struct LP_address

5
iguana/exchanges/LP_utxo.c

@ -164,9 +164,12 @@ cJSON *LP_address_utxos(struct iguana_info *coin,char *coinaddr,int32_t electrum
{
DL_FOREACH_SAFE(ap->utxos,up,tmp)
{
char str[65]; printf("%s/v%d %.8f ht.%d spend.%d\n",bits256_str(str,up->U.txid),up->U.vout,dstr(up->U.value),up->height,up->spendheight);
char str[65]; printf("LP_address_utxos %s/v%d %.8f ht.%d spend.%d\n",bits256_str(str,up->U.txid),up->U.vout,dstr(up->U.value),up->U.height,up->spendheight);
if ( up->spendheight <= 0 )
{
jaddi(array,LP_address_item(coin,up,electrumret));
printf("new array %s\n",jprint(array,0));
}
}
}
portable_mutex_unlock(&coin->txmutex);

Loading…
Cancel
Save