Syntax
This commit is contained in:
@@ -189,7 +189,7 @@ int32_t NSPV_getaddresstxids(struct NSPV_txidsresp *ptr,char *coinaddr,bool isCC
|
|||||||
{
|
{
|
||||||
int32_t maxlen,txheight,n = 0,len = 0;
|
int32_t maxlen,txheight,n = 0,len = 0;
|
||||||
std::vector<std::pair<CAddressIndexKey, CAmount> > txids;
|
std::vector<std::pair<CAddressIndexKey, CAmount> > txids;
|
||||||
SetCCtxids(addressIndex,coinaddr,isCC);
|
SetCCtxids(txids,coinaddr,isCC);
|
||||||
ptr->nodeheight = chainActive.LastTip()->GetHeight();
|
ptr->nodeheight = chainActive.LastTip()->GetHeight();
|
||||||
maxlen = MAX_BLOCK_SIZE(ptr->nodeheight) - 512;
|
maxlen = MAX_BLOCK_SIZE(ptr->nodeheight) - 512;
|
||||||
maxlen /= sizeof(*ptr->txids);
|
maxlen /= sizeof(*ptr->txids);
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ UniValue NSPV_txidsresp_json(struct NSPV_txidsresp *ptr)
|
|||||||
result.push_back(Pair("address",ptr->coinaddr));
|
result.push_back(Pair("address",ptr->coinaddr));
|
||||||
result.push_back(Pair("isCC",ptr->CCflag));
|
result.push_back(Pair("isCC",ptr->CCflag));
|
||||||
result.push_back(Pair("height",(int64_t)ptr->nodeheight));
|
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));
|
result.push_back(Pair("lastpeer",NSPV_lastpeer));
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user