masternode bulk request only happens once

This commit is contained in:
Evan Duffield 2014-05-09 06:38:05 -07:00
parent 929cc7c039
commit 0f1a1a6bbd

View File

@ -51,6 +51,7 @@ bool fImporting = false;
bool fReindex = false;
bool fBenchmark = false;
bool fTxIndex = false;
bool fRequestedMasterNodeList = false;
unsigned int nCoinCacheSize = 5000;
// create DarkSend pools
@ -3877,8 +3878,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
// Change version
pfrom->PushMessage("verack");
pfrom->ssSend.SetVersion(min(pfrom->nVersion, PROTOCOL_VERSION));
pfrom->PushMessage("dseg");
if(!fRequestedMasterNodeList) {
bool fIsInitialDownload = IsInitialBlockDownload();
if(!fIsInitialDownload) {
pfrom->PushMessage("dseg");
fRequestedMasterNodeList = true;
}
}
if (!pfrom->fInbound)
{