allow masternodes to turn on pre-sync - udjin
This commit is contained in:
parent
da21fed1f5
commit
d227f28621
@ -17,7 +17,7 @@ void CActiveMasternode::ManageStatus()
|
||||
if (fDebug) LogPrintf("CActiveMasternode::ManageStatus() - Begin\n");
|
||||
|
||||
//need correct blocks to send ping
|
||||
if(Params().NetworkID() != CBaseChainParams::REGTEST && !masternodeSync.IsSynced()) {
|
||||
if(Params().NetworkID() != CBaseChainParams::REGTEST && !masternodeSync.IsListSyncStarted()) {
|
||||
status = ACTIVE_MASTERNODE_SYNC_IN_PROCESS;
|
||||
LogPrintf("CActiveMasternode::ManageStatus() - %s\n", GetStatus());
|
||||
return;
|
||||
|
@ -28,6 +28,11 @@ bool CMasternodeSync::IsSynced()
|
||||
return RequestedMasternodeAssets == MASTERNODE_SYNC_FINISHED;
|
||||
}
|
||||
|
||||
bool CMasternodeSync::IsListSyncStarted()
|
||||
{
|
||||
return RequestedMasternodeAssets >= MASTERNODE_SYNC_LIST;
|
||||
}
|
||||
|
||||
void CMasternodeSync::AddedMasternodeList()
|
||||
{
|
||||
lastMasternodeList = GetTime();
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
|
||||
void Process();
|
||||
bool IsSynced();
|
||||
bool IsListSyncStarted();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user