diff --git a/src/clientversion.h b/src/clientversion.h index c4d83f7097..b15e0bb1f5 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -9,7 +9,7 @@ #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 9 #define CLIENT_VERSION_REVISION 4 -#define CLIENT_VERSION_BUILD 4 +#define CLIENT_VERSION_BUILD 5 // Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true diff --git a/src/main.cpp b/src/main.cpp index f6582c0154..83693fb5e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,7 +51,7 @@ bool fImporting = false; bool fReindex = false; bool fBenchmark = false; bool fTxIndex = false; -bool fRequestedMasterNodeList = false; +int RequestedMasterNodeList = 0; unsigned int nCoinCacheSize = 5000; // create DarkSend pools @@ -3889,11 +3889,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) if (pfrom->nVersion >= darkSendPool.MIN_PEER_PROTO_VERSION) { - if(!fRequestedMasterNodeList) { + if(RequestedMasterNodeList <= 5) { bool fIsInitialDownload = IsInitialBlockDownload(); if(!fIsInitialDownload) { pfrom->PushMessage("dseg"); - fRequestedMasterNodeList = true; + RequestedMasterNodeList++; } } } @@ -4050,8 +4050,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) mn.UpdateLastSeen(); darkSendMasterNodes.push_back(mn); - fRequestedMasterNodeList = true; - if(count == -1) RelayDarkSendElectionEntry(vin, addr, vchSig, sigTime, pubkey, pubkey2, count, current);