|
|
@ -417,27 +417,28 @@ bits256 LP_privkeycalc(void *ctx,uint8_t *pubkey33,bits256 *pubkeyp,struct iguan |
|
|
|
|
|
|
|
void verus_utxos(struct iguana_info *coin,char *coinaddr) |
|
|
|
{ |
|
|
|
cJSON *array,*item; char buf[64],str[65]; int32_t i,vout,n=0; bits256 txid; |
|
|
|
cJSON *array,*item; char buf[64],str[65]; int32_t i,m,vout,n=0; bits256 txid; |
|
|
|
sprintf(buf,"[%d, 99999999, [\"%s\"]]",1,coinaddr); |
|
|
|
array = bitcoin_json(coin,"listunspent",buf); |
|
|
|
if ( array != 0 ) |
|
|
|
{ |
|
|
|
if ( (n= cJSON_GetArraySize(array)) > 0 ) |
|
|
|
{ |
|
|
|
for (i=0; i<n; i++) |
|
|
|
for (i=m=0; i<n; i++) |
|
|
|
{ |
|
|
|
item = jitem(array,i); |
|
|
|
if ( fabs(jdouble(item,"amount") - 64.) < 0.0006 ) |
|
|
|
{ |
|
|
|
txid = jbits256(item,"txid"); |
|
|
|
vout = jint(item,"vout"); |
|
|
|
printf("%s/v%d\n",bits256_str(str,txid),vout); |
|
|
|
printf("%d: %s/v%d\n",m,bits256_str(str,txid),vout); |
|
|
|
m++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
free_json(array); |
|
|
|
} |
|
|
|
printf("scanned %d utxos\n",n); |
|
|
|
printf("scanned %d utxos m.%d\n",n,m); |
|
|
|
} |
|
|
|
|
|
|
|
char *verusblocks() |
|
|
|