From 4509efcc63114d7e27faf701aaadb0cd3ca0ddbb Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Fri, 2 Aug 2019 23:22:20 +0800 Subject: [PATCH] fix NSPV addressindex --- src/init.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 903ca8555..6f7f91988 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1911,7 +1911,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) PruneAndFlush(); } } - if ( KOMODO_NSPV > 0 ) + if ( KOMODO_NSPV >= 0 ) { if ( GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX) != 0 ) nLocalServices |= NODE_ADDRINDEX; diff --git a/src/main.cpp b/src/main.cpp index 9cffe8a76..c232b44ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7503,7 +7503,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } else if (strCommand == "getnSPV") { - if ( KOMODO_NSPV == 0 ) + if ( KOMODO_NSPV == 0 && KOMODO_INSYNC != 0 ) { std::vector payload; vRecv >> payload;