Fullnode shouldn't issue getnSPV calls

This commit is contained in:
jl777
2019-07-09 00:45:22 -11:00
parent ba4f380d66
commit c1bbe1421c

View File

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