Skip to content

Commit

Permalink
Merge pull request #438 from DeckerSU/patch-nspv-msg
Browse files Browse the repository at this point in the history
fix nLocalServices NODE_NSPV conditional init
  • Loading branch information
ca333 authored May 23, 2021
2 parents 0786caa + f584c27 commit 0918081
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extern char ASSETCHAINS_SYMBOL[65];

bool fDiscover = true;
bool fListen = true;
uint64_t nLocalServices = GetBoolArg("-nspv_msg", DEFAULT_NSPV_PROCESSING) ? NODE_NETWORK | NODE_NSPV : NODE_NETWORK;
uint64_t nLocalServices = NODE_NETWORK;
CCriticalSection cs_mapLocalHost;
map<CNetAddr, LocalServiceInfo> mapLocalHost;
static bool vfLimited[NET_MAX] = {};
Expand Down Expand Up @@ -1792,6 +1792,12 @@ void static Discover(boost::thread_group& threadGroup)

void StartNode(boost::thread_group& threadGroup, CScheduler& scheduler)
{

if (GetBoolArg("-nspv_msg", DEFAULT_NSPV_PROCESSING)) {
nLocalServices |= NODE_NSPV;
LogPrintf("NSPV messages processing enabled\n");
}

uiInterface.InitMessage(_("Loading addresses..."));
// Load addresses for peers.dat
int64_t nStart = GetTimeMillis();
Expand Down

0 comments on commit 0918081

Please sign in to comment.