|
|
@ -193,7 +193,7 @@ 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);
|
|
|
|
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
|
|
|
@ -217,7 +217,7 @@ int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid, |
|
|
|
up->spendheight = spendheight, flag |= 4; |
|
|
|
if ( up->U.value == 0 && up->U.value != value ) |
|
|
|
up->U.value = value, flag |= 8; |
|
|
|
//printf("found >>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value));
|
|
|
|
printf("found >>>>>>>>>> %s %s %s/v%d ht.%d %.8f\n",coin->symbol,coinaddr,bits256_str(str,txid),vout,height,dstr(value)); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -227,7 +227,7 @@ int32_t LP_address_utxoadd(struct iguana_info *coin,char *coinaddr,bits256 txid, |
|
|
|
{ |
|
|
|
if ( (txobj= LP_gettxout(coin->symbol,coinaddr,txid,vout)) == 0 ) |
|
|
|
{ |
|
|
|
//printf("prevent utxoadd since gettxout %s/v%d missing\n",bits256_str(str,txid),vout);
|
|
|
|
printf("prevent utxoadd since gettxout %s %s %s/v%d missing\n",coin->symbol,coinaddr,bits256_str(str,txid),vout); |
|
|
|
return(0); |
|
|
|
} else free_json(txobj); |
|
|
|
} |
|
|
|