masternode sync fix

This commit is contained in:
Evan Duffield 2014-05-20 06:44:15 -07:00
parent 9dd3930721
commit b5f1a03a63
2 changed files with 4 additions and 6 deletions

View File

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

View File

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