Browse Source

Speedup

warmup
jl777 5 years ago
parent
commit
f94ed2c3b3
  1. 4
      src/komodo_nSPV.h
  2. 2
      src/komodo_nSPV_fullnode.h

4
src/komodo_nSPV.h

@ -27,8 +27,8 @@
#ifndef KOMODO_NSPV_H
#define KOMODO_NSPV_H
#define NSPV_POLLITERS 15
#define NSPV_POLLMICROS 100000
#define NSPV_POLLITERS 10
#define NSPV_POLLMICROS 100777
#define NSPV_MAXVINS 64
#define NSPV_AUTOLOGOUT 777
#define NSPV_BRANCHID 0x76b809bb

2
src/komodo_nSPV_fullnode.h

@ -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;

Loading…
Cancel
Save