allow masternodes to turn on pre-sync - udjin

This commit is contained in:
Evan Duffield 2015-07-26 12:37:01 -07:00
parent da21fed1f5
commit d227f28621
3 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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();

View File

@ -44,6 +44,7 @@ public:
void Process();
bool IsSynced();
bool IsListSyncStarted();
};
#endif