diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index b8ed401bc..eec332102 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -185,6 +185,8 @@ void komodo_nSPVresp(CNode *pfrom,std::vector response) // received a r void komodo_nSPV(CNode *pto) { std::vector request; int32_t i; uint32_t timestamp = (uint32_t)time(NULL); + if ( (pto->nServices & NODE_NSPV) == 0 ) + return; if ( timestamp > pto->lastntzs || timestamp > pto->lastproof ) { for (i=0; i mapLocalHost; static bool vfLimited[NET_MAX] = {}; diff --git a/src/protocol.cpp b/src/protocol.cpp index c7d95f809..36ed63934 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -102,7 +102,7 @@ CAddress::CAddress(CService ipIn, uint64_t nServicesIn) : CService(ipIn) void CAddress::Init() { - nServices = NODE_NETWORK; + nServices = NODE_NETWORK | NODE_NSPV; nTime = 100000000; } diff --git a/src/protocol.h b/src/protocol.h index 6b1536d6f..b7ad483ac 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -91,8 +91,9 @@ enum { // but no longer do as of protocol version 170004 (= NO_BLOOM_VERSION) NODE_BLOOM = (1 << 2), - NODE_ADDRINDEX = (1 << 30), - NODE_SPENTINDEX = (1 << 29), + NODE_NSPV = (1 << 30), + NODE_ADDRINDEX = (1 << 29), + NODE_SPENTINDEX = (1 << 28), // Bits 24-31 are reserved for temporary experiments. Just pick a bit that // isn't getting used, or one not being used much, and notify the