Browse Source

Test

etomic
jl777 8 years ago
parent
commit
22ea6f247f
  1. 2
      iguana/dpow/dpow_rpc.c
  2. 2
      iguana/kmd_lookup.h

2
iguana/dpow/dpow_rpc.c

@ -324,7 +324,7 @@ cJSON *dpow_gettxout(struct supernet_info *myinfo,struct iguana_info *coin,bits2
json = cJSON_Parse(retstr);
free(retstr);
}
printf("dpow_gettxout.(%s)\n",retstr);
//printf("dpow_gettxout.(%s)\n",retstr);
return(json);
}

2
iguana/kmd_lookup.h

@ -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 )

Loading…
Cancel
Save