|
|
@ -286,11 +286,11 @@ char *LP_postedutxos(cJSON *argjson) |
|
|
|
if ( coin->height != 0 ) |
|
|
|
ht = LP_getheight(coin) - jint(txobj,"confirmations"); |
|
|
|
else ht = 0; |
|
|
|
if ( ht != 0 && ht < height-2 ) |
|
|
|
/*if ( ht != 0 && ht < height-2 )
|
|
|
|
{ |
|
|
|
printf("REJECT %s %s/v%d ht.%d vs %d confs.%d (%s)\n",symbol,bits256_str(str,txid),v,ht,height,jint(txobj,"confirmations"),jprint(item,0)); |
|
|
|
errs++; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
free_json(txobj); |
|
|
|
} |
|
|
|
if ( errs == 0 ) |
|
|
@ -461,7 +461,9 @@ cJSON *LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter,cJS |
|
|
|
continue; |
|
|
|
if ( (tx= LP_transactionfind(coin,spenttxid)) != 0 ) |
|
|
|
{ |
|
|
|
if ( spentvout < tx->numvouts && tx->outpoints[spentvout].spendheight <= 0 ) |
|
|
|
if ( spentvout < tx->numvouts ) |
|
|
|
{ |
|
|
|
if ( tx->outpoints[spentvout].spendheight <= 0 ) |
|
|
|
{ |
|
|
|
tx->outpoints[spentvout].spendtxid = txid; |
|
|
|
tx->outpoints[spentvout].spendvini = i; |
|
|
@ -469,6 +471,7 @@ cJSON *LP_transactioninit(struct iguana_info *coin,bits256 txid,int32_t iter,cJS |
|
|
|
LP_address_utxoadd(coin,tx->outpoints[spentvout].coinaddr,spenttxid,spentvout,tx->outpoints[spentvout].value,-1,height>0?height:1); |
|
|
|
if ( 0 && strcmp(coin->symbol,"BTC") != 0 ) |
|
|
|
printf("spend %s %s/v%d at ht.%d\n",coin->symbol,bits256_str(str,tx->txid),spentvout,height); |
|
|
|
} |
|
|
|
} else printf("LP_transactioninit: %s spentvout.%d < numvouts.%d spendheight.%d\n",bits256_str(str,spenttxid),spentvout,tx->numvouts,tx->outpoints[spentvout].spendheight); |
|
|
|
} //else printf("LP_transactioninit: couldnt find (%s) ht.%d %s\n",bits256_str(str,spenttxid),height,jprint(vin,0));
|
|
|
|
if ( bits256_cmp(spenttxid,txid) == 0 ) |
|
|
|