|
|
@ -363,7 +363,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
//portable_mutex_lock(&LP_utxomutex);
|
|
|
|
DL_FOREACH_SAFE(ap->utxos,up,tmp) |
|
|
|
{ |
|
|
|
//char str[65]; printf("LP_address_utxo_ptrs %s n.%d %.8f %s v%d spendheight.%d allocated.%d\n",ap->coinaddr,n,dstr(up->U.value),bits256_str(str,up->U.txid),up->U.vout,up->spendheight,LP_allocated(up->U.txid,up->U.vout));
|
|
|
|
char str[65]; printf("LP_address_utxo_ptrs %s n.%d %.8f %s v%d spendheight.%d allocated.%d\n",ap->coinaddr,n,dstr(up->U.value),bits256_str(str,up->U.txid),up->U.vout,up->spendheight,LP_allocated(up->U.txid,up->U.vout)); |
|
|
|
if ( up->spendheight <= 0 && LP_RTmetrics_avoidtxid(up->U.txid) < 0 ) |
|
|
|
{ |
|
|
|
if ( coin->electrum == 0 ) |
|
|
@ -372,7 +372,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
{ |
|
|
|
if ( LP_value_extract(txout,0,up->U.txid) == 0 ) |
|
|
|
{ |
|
|
|
//char str[65]; printf("LP_address_utxo_ptrs skip zero value %s/v%d\n",bits256_str(str,up->U.txid),up->U.vout);
|
|
|
|
char str[65]; printf("LP_address_utxo_ptrs skip zero value %s/v%d\n",bits256_str(str,up->U.txid),up->U.vout); |
|
|
|
free_json(txout); |
|
|
|
up->spendheight = 1; |
|
|
|
if ( (tx= LP_transactionfind(coin,up->U.txid)) != 0 && up->U.vout < tx->numvouts ) |
|
|
@ -383,7 +383,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//char str[65]; printf("LP_address_utxo_ptrs skips %s %s payment %s/v%d is spent\n",coin->symbol,coinaddr,bits256_str(str,up->U.txid),up->U.vout);
|
|
|
|
char str[65]; printf("LP_address_utxo_ptrs skips %s %s payment %s/v%d is spent\n",coin->symbol,coinaddr,bits256_str(str,up->U.txid),up->U.vout); |
|
|
|
up->spendheight = 1; |
|
|
|
if ( (tx= LP_transactionfind(coin,up->U.txid)) != 0 && up->U.vout < tx->numvouts ) |
|
|
|
tx->outpoints[up->U.vout].spendheight = 1; |
|
|
@ -394,7 +394,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
{ |
|
|
|
if ( up->SPV < 0 || up->U.height == 0 ) |
|
|
|
{ |
|
|
|
//printf("LP_address_utxo_ptrs skips %s/v%u due to SPV.%d ht.%d\n",bits256_str(str,up->U.txid),up->U.vout,up->SPV,up->U.height);
|
|
|
|
printf("LP_address_utxo_ptrs skips %s/v%u due to SPV.%d ht.%d\n",bits256_str(str,up->U.txid),up->U.vout,up->SPV,up->U.height); |
|
|
|
if ( (tx= LP_transactionfind(coin,up->U.txid)) != 0 && up->U.vout < tx->numvouts ) |
|
|
|
tx->outpoints[up->U.vout].spendheight = 1; |
|
|
|
continue; |
|
|
@ -411,7 +411,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
if ( n >= max ) |
|
|
|
break; |
|
|
|
} |
|
|
|
} //else printf("LP_allocated skip %u\n",LP_allocated(up->U.txid,up->U.vout));
|
|
|
|
} else printf("LP_allocated skip %u\n",LP_allocated(up->U.txid,up->U.vout)); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
@ -420,7 +420,7 @@ int32_t LP_address_utxo_ptrs(struct iguana_info *coin,int32_t iambob,struct LP_a |
|
|
|
} |
|
|
|
} |
|
|
|
//portable_mutex_unlock(&LP_utxomutex);
|
|
|
|
//printf("return n.%d for %s %s\n",n,coin->symbol,coinaddr);
|
|
|
|
printf("return n.%d for %s %s\n",n,coin->symbol,coinaddr); |
|
|
|
return(n); |
|
|
|
} |
|
|
|
|
|
|
|