|
|
@ -318,7 +318,7 @@ cJSON *kmd_unspentjson(struct supernet_info *myinfo,struct iguana_info *coin,int |
|
|
|
jaddnum(item,"interest",dstr(_iguana_interest((uint32_t)time(NULL),coin->longestchain,tx->timestamp,tx->vouts[vout].amount))); |
|
|
|
if ( is_listunspent != 0 ) |
|
|
|
{ |
|
|
|
char str[65]; printf("get spendscriptstr for %s/v%d\n",bits256_str(str,tx->txid),vout); |
|
|
|
//char str[65]; printf("get spendscriptstr for %s/v%d\n",bits256_str(str,tx->txid),vout);
|
|
|
|
if ( (txout= dpow_gettxout(myinfo,coin,tx->txid,vout)) != 0 ) |
|
|
|
{ |
|
|
|
if ( (sobj= jobj(txout,"scriptPubKey")) != 0 && (script= jstr(txout,"hex")) != 0 ) |
|
|
|