Test
This commit is contained in:
@@ -558,7 +558,7 @@ UniValue NSPV_addressutxos(char *coinaddr,int32_t CCflag,int32_t skipcount)
|
|||||||
{
|
{
|
||||||
UniValue result(UniValue::VOBJ); uint8_t msg[64]; int32_t i,iter,slen,len = 0;
|
UniValue result(UniValue::VOBJ); uint8_t msg[64]; int32_t i,iter,slen,len = 0;
|
||||||
//fprintf(stderr,"utxos %s NSPV addr %s\n",coinaddr,NSPV_address.c_str());
|
//fprintf(stderr,"utxos %s NSPV addr %s\n",coinaddr,NSPV_address.c_str());
|
||||||
if ( NSPV_utxosresult.nodeheight >= NSPV_inforesult.height && strcmp(coinaddr,NSPV_utxosresult.coinaddr) == 0 && CCflag == NSPV_utxosresult.CCflag )
|
if ( NSPV_utxosresult.nodeheight >= NSPV_inforesult.height && strcmp(coinaddr,NSPV_utxosresult.coinaddr) == 0 && CCflag == NSPV_utxosresult.CCflag && skipcount == NSPV_utxosresult.skipcount )
|
||||||
return(NSPV_utxosresp_json(&NSPV_utxosresult));
|
return(NSPV_utxosresp_json(&NSPV_utxosresult));
|
||||||
NSPV_utxosresp_purge(&NSPV_utxosresult);
|
NSPV_utxosresp_purge(&NSPV_utxosresult);
|
||||||
if ( bitcoin_base58decode(msg,coinaddr) != 25 )
|
if ( bitcoin_base58decode(msg,coinaddr) != 25 )
|
||||||
@@ -591,7 +591,7 @@ UniValue NSPV_addressutxos(char *coinaddr,int32_t CCflag,int32_t skipcount)
|
|||||||
UniValue NSPV_addresstxids(char *coinaddr,int32_t CCflag,int32_t skipcount)
|
UniValue NSPV_addresstxids(char *coinaddr,int32_t CCflag,int32_t skipcount)
|
||||||
{
|
{
|
||||||
UniValue result(UniValue::VOBJ); uint8_t msg[64]; int32_t i,iter,slen,len = 0;
|
UniValue result(UniValue::VOBJ); uint8_t msg[64]; int32_t i,iter,slen,len = 0;
|
||||||
if ( NSPV_txidsresult.nodeheight >= NSPV_inforesult.height && strcmp(coinaddr,NSPV_txidsresult.coinaddr) == 0 && CCflag == NSPV_txidsresult.CCflag )
|
if ( NSPV_txidsresult.nodeheight >= NSPV_inforesult.height && strcmp(coinaddr,NSPV_txidsresult.coinaddr) == 0 && CCflag == NSPV_txidsresult.CCflag && skipcount == NSPV_txidsresult.skipcount )
|
||||||
return(NSPV_txidsresp_json(&NSPV_txidsresult));
|
return(NSPV_txidsresp_json(&NSPV_txidsresult));
|
||||||
NSPV_txidsresp_purge(&NSPV_txidsresult);
|
NSPV_txidsresp_purge(&NSPV_txidsresult);
|
||||||
if ( bitcoin_base58decode(msg,coinaddr) != 25 )
|
if ( bitcoin_base58decode(msg,coinaddr) != 25 )
|
||||||
|
|||||||
@@ -1049,6 +1049,7 @@ UniValue nspv_listtransactions(const UniValue& params, bool fHelp)
|
|||||||
CCflag = atoi((char *)params[1].get_str().c_str());
|
CCflag = atoi((char *)params[1].get_str().c_str());
|
||||||
if ( params.size() == 3 )
|
if ( params.size() == 3 )
|
||||||
skipcount = atoi((char *)params[2].get_str().c_str());
|
skipcount = atoi((char *)params[2].get_str().c_str());
|
||||||
|
fprintf(stderr,"call txids cc.%d skip.%d\n",CCflag,skipcount);
|
||||||
return(NSPV_addresstxids((char *)params[0].get_str().c_str(),CCflag,skipcount));
|
return(NSPV_addresstxids((char *)params[0].get_str().c_str(),CCflag,skipcount));
|
||||||
}
|
}
|
||||||
else throw runtime_error("nspv_listtransactions [address [isCC [skipcount]]]\n");
|
else throw runtime_error("nspv_listtransactions [address [isCC [skipcount]]]\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user