|
|
@ -145,7 +145,7 @@ int32_t NSPV_getaddressutxos(struct NSPV_utxosresp *ptr,char *coinaddr) // check |
|
|
|
maxlen = MAX_BLOCK_SIZE(tipheight) - 512; |
|
|
|
maxlen /= sizeof(*ptr->utxos); |
|
|
|
strncpy(ptr->coinaddr,coinaddr,sizeof(ptr->coinaddr)-1); |
|
|
|
if ( (ptr->numutxos= (int32_t)unspentOutputs.size()) > 0 && ptr->numutxos < maxlen ) |
|
|
|
if ( (ptr->numutxos= (int32_t)unspentOutputs.size()) >= 0 && ptr->numutxos < maxlen ) |
|
|
|
{ |
|
|
|
tipheight = chainActive.LastTip()->GetHeight(); |
|
|
|
ptr->nodeheight = tipheight; |
|
|
|