This commit is contained in:
jl777
2019-07-13 02:00:47 -11:00
parent 6bf2a78f1d
commit 7c5bc6a6c7
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ int32_t NSPV_getaddresstxids(struct NSPV_txidsresp *ptr,char *coinaddr,bool isCC
{
int32_t maxlen,txheight,n = 0,len = 0;
std::vector<std::pair<CAddressIndexKey, CAmount> > txids;
SetCCtxids(addressIndex,coinaddr,isCC);
SetCCtxids(txids,coinaddr,isCC);
ptr->nodeheight = chainActive.LastTip()->GetHeight();
maxlen = MAX_BLOCK_SIZE(ptr->nodeheight) - 512;
maxlen /= sizeof(*ptr->txids);

View File

@@ -424,7 +424,7 @@ UniValue NSPV_txidsresp_json(struct NSPV_txidsresp *ptr)
result.push_back(Pair("address",ptr->coinaddr));
result.push_back(Pair("isCC",ptr->CCflag));
result.push_back(Pair("height",(int64_t)ptr->nodeheight));
result.push_back(Pair("numtxids",(int64_t)ptr->numutxos));
result.push_back(Pair("numtxids",(int64_t)ptr->numtxids));
result.push_back(Pair("lastpeer",NSPV_lastpeer));
return(result);
}