|
|
@ -405,7 +405,8 @@ static char *verifymessage(RPCARGS) |
|
|
|
// unspents
|
|
|
|
static char *listunspent(RPCARGS) |
|
|
|
{ |
|
|
|
int32_t numrmds,minconf=0,maxconf=0,m = 0; uint8_t *rmdarray; cJSON *retjson; |
|
|
|
return(sglue3(0,CALLGLUE,"bitcoinrpc","listunspent","minconf",params[0],"maxconf",params[1],"array",params[2])); |
|
|
|
/*int32_t numrmds,minconf=0,maxconf=0,m = 0; uint8_t *rmdarray; cJSON *retjson;
|
|
|
|
retjson = cJSON_CreateArray(); |
|
|
|
if ( (minconf= juint(params[0],0)) > 0 ) |
|
|
|
{ |
|
|
@ -421,8 +422,7 @@ static char *listunspent(RPCARGS) |
|
|
|
iguana_unspents(myinfo,coin,retjson,minconf,maxconf,rmdarray,numrmds); |
|
|
|
if ( rmdarray != 0 ) |
|
|
|
free(rmdarray); |
|
|
|
return(jprint(retjson,1)); |
|
|
|
// return(sglue2(0,CALLGLUE,"bitcoinrpc","listunspent","minconf",params[0],"maxconf",params[1]));
|
|
|
|
return(jprint(retjson,1));*/ |
|
|
|
} |
|
|
|
|
|
|
|
static char *lockunspent(RPCARGS) |
|
|
|