|
|
@ -427,6 +427,7 @@ struct LP_address *LP_address_utxo_reset(struct iguana_info *coin) |
|
|
|
{ |
|
|
|
struct LP_address *ap; struct LP_address_utxo *up,*tmp; int32_t i,n,m,vout,height; cJSON *array,*item,*txobj; int64_t value; bits256 txid; uint32_t now; |
|
|
|
LP_address(coin,coin->smartaddr); |
|
|
|
printf("call listunspent issue %s (%s)\n",coin->symbol,coin->smartaddr); |
|
|
|
LP_listunspent_issue(coin->symbol,coin->smartaddr,2); |
|
|
|
if ( (ap= LP_addressfind(coin,coin->smartaddr)) == 0 ) |
|
|
|
{ |
|
|
@ -454,7 +455,7 @@ struct LP_address *LP_address_utxo_reset(struct iguana_info *coin) |
|
|
|
//{"tx_hash":"38d1b7c73015e1b1d6cb7fc314cae402a635b7d7ea294970ab857df8777a66f4","tx_pos":0,"height":577975,"value":238700}
|
|
|
|
item = jitem(array,i); |
|
|
|
value = LP_listunspent_parseitem(coin,&txid,&vout,&height,item); |
|
|
|
if ( (txobj= LP_gettxout(coin->symbol,coin->symbol,txid,vout)) == 0 ) |
|
|
|
if ( (txobj= LP_gettxout(coin->symbol,coin->smartaddr,txid,vout)) == 0 ) |
|
|
|
continue; |
|
|
|
else free_json(txobj); |
|
|
|
LP_address_utxoadd(now,"withdraw",coin,coin->smartaddr,txid,vout,value,height,-1); |
|
|
|