Skip to content

Commit bf34585

Browse files
committed
refactor: rename DsegUpdate to RequestMnList
1 parent c896407 commit bf34585

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/masternode-sync.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ bool CMasternodeSync::SyncWithNode(CNode* pnode, bool fLegacyMnObsolete)
379379
if (pnode->HasFulfilledRequest("mnsync")) return true;
380380

381381
// Try to request MN list sync.
382-
if (!mnodeman.DsegUpdate(pnode)) {
382+
if (!mnodeman.RequestMnList(pnode)) {
383383
return true; // Failed, try next peer.
384384
}
385385

src/masternodeman.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ int CMasternodeMan::CountEnabled(bool only_legacy) const
438438
return count_enabled;
439439
}
440440

441-
bool CMasternodeMan::DsegUpdate(CNode* pnode)
441+
bool CMasternodeMan::RequestMnList(CNode* pnode)
442442
{
443443
// Skip after legacy obsolete. !TODO: remove when transition to DMN is complete
444444
if (deterministicMNManager->LegacyMNObsolete()) {
@@ -459,7 +459,7 @@ bool CMasternodeMan::DsegUpdate(CNode* pnode)
459459
}
460460

461461
g_connman->PushMessage(pnode, CNetMsgMaker(pnode->GetSendVersion()).Make(NetMsgType::GETMNLIST, CTxIn()));
462-
int64_t askAgain = GetTime() + MASTERNODES_DSEG_SECONDS;
462+
int64_t askAgain = GetTime() + MASTERNODES_REQUEST_SECONDS;
463463
mWeAskedForMasternodeList[pnode->addr] = askAgain;
464464
return true;
465465
}
@@ -909,7 +909,7 @@ int CMasternodeMan::ProcessGetMNList(CNode* pfrom, CTxIn& vin)
909909
return 20;
910910
}
911911
}
912-
int64_t askAgain = GetTime() + MASTERNODES_DSEG_SECONDS;
912+
int64_t askAgain = GetTime() + MASTERNODES_REQUEST_SECONDS;
913913
mAskedUsForMasternodeList[pfrom->addr] = askAgain;
914914
}
915915

src/masternodeman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "sync.h"
1616
#include "util/system.h"
1717

18-
#define MASTERNODES_DSEG_SECONDS (60 * 60) // One hour.
18+
#define MASTERNODES_REQUEST_SECONDS (60 * 60) // One hour.
1919

2020
/** Maximum number of block hashes to cache */
2121
static const unsigned int CACHED_BLOCK_HASHES = 200;
@@ -130,7 +130,7 @@ class CMasternodeMan
130130

131131
int CountEnabled(bool only_legacy = false) const;
132132

133-
bool DsegUpdate(CNode* pnode);
133+
bool RequestMnList(CNode* pnode);
134134

135135
/// Find an entry
136136
CMasternode* Find(const COutPoint& collateralOut);

0 commit comments

Comments
 (0)