mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 22:35:51 +01:00
masternode bulk request only happens once
This commit is contained in:
parent
929cc7c039
commit
0f1a1a6bbd
@ -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
|
||||
@ -3878,7 +3879,13 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
||||
pfrom->PushMessage("verack");
|
||||
pfrom->ssSend.SetVersion(min(pfrom->nVersion, PROTOCOL_VERSION));
|
||||
|
||||
if(!fRequestedMasterNodeList) {
|
||||
bool fIsInitialDownload = IsInitialBlockDownload();
|
||||
if(!fIsInitialDownload) {
|
||||
pfrom->PushMessage("dseg");
|
||||
fRequestedMasterNodeList = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!pfrom->fInbound)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user