mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
masternode bulk request only happens once
This commit is contained in:
parent
929cc7c039
commit
0f1a1a6bbd
11
src/main.cpp
11
src/main.cpp
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user