From c1bbe1421c53d66a300fcab857c4fd7488c232cd Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 9 Jul 2019 00:45:22 -1100 Subject: [PATCH] Fullnode shouldn't issue getnSPV calls --- src/komodo_nSPV_superlite.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/komodo_nSPV_superlite.h b/src/komodo_nSPV_superlite.h index 75fffb761..2563f1253 100644 --- a/src/komodo_nSPV_superlite.h +++ b/src/komodo_nSPV_superlite.h @@ -155,6 +155,8 @@ UniValue NSPV_logout() void komodo_nSPV(CNode *pto) // polling loop from SendMessages { uint8_t msg[256]; int32_t i,len=0; uint32_t timestamp = (uint32_t)time(NULL); + if ( KOMODO_NSPV == 0 ) + return; if ( NSPV_logintime != 0 && timestamp > NSPV_logintime+NSPV_AUTOLOGOUT ) NSPV_logout(); if ( (pto->nServices & NODE_NSPV) == 0 )