|
|
@ -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; |
|
|
|