Skip to content

Commit 9ea042c

Browse files
committed
refactor: rename DsegUpdate to RequestMnList
1 parent 60767c0 commit 9ea042c

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
@@ -368,7 +368,7 @@ bool CMasternodeSync::SyncWithNode(CNode* pnode, bool fLegacyMnObsolete)
368368
if (pnode->HasFulfilledRequest("mnsync")) return true;
369369

370370
// Try to request MN list sync.
371-
if (!mnodeman.DsegUpdate(pnode)) {
371+
if (!mnodeman.RequestMnList(pnode)) {
372372
return true; // Failed, try next peer.
373373
}
374374

src/masternodeman.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ int CMasternodeMan::CountNetworks(int& ipv4, int& ipv6, int& onion) const
421421
return mapMasternodes.size();
422422
}
423423

424-
bool CMasternodeMan::DsegUpdate(CNode* pnode)
424+
bool CMasternodeMan::RequestMnList(CNode* pnode)
425425
{
426426
// Skip after legacy obsolete. !TODO: remove when transition to DMN is complete
427427
if (deterministicMNManager->LegacyMNObsolete()) {
@@ -442,7 +442,7 @@ bool CMasternodeMan::DsegUpdate(CNode* pnode)
442442
}
443443

444444
g_connman->PushMessage(pnode, CNetMsgMaker(pnode->GetSendVersion()).Make(NetMsgType::GETMNLIST, CTxIn()));
445-
int64_t askAgain = GetTime() + MASTERNODES_DSEG_SECONDS;
445+
int64_t askAgain = GetTime() + MASTERNODES_REQUEST_SECONDS;
446446
mWeAskedForMasternodeList[pnode->addr] = askAgain;
447447
return true;
448448
}
@@ -827,7 +827,7 @@ int CMasternodeMan::ProcessGetMNList(CNode* pfrom, CTxIn& vin)
827827
return 20;
828828
}
829829
}
830-
int64_t askAgain = GetTime() + MASTERNODES_DSEG_SECONDS;
830+
int64_t askAgain = GetTime() + MASTERNODES_REQUEST_SECONDS;
831831
mAskedUsForMasternodeList[pfrom->addr] = askAgain;
832832
}
833833

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
/// Count the number of nodes with a specific proto version for each network. Return the total.
131131
int CountNetworks(int& ipv4, int& ipv6, int& onion) 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)