mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Fix Hot Masternode Starting (#1239)
This commit is contained in:
parent
7815f6e32e
commit
89d14c5274
@ -40,7 +40,10 @@ void CActiveMasternode::ManageState()
|
|||||||
if(eType == MASTERNODE_REMOTE) {
|
if(eType == MASTERNODE_REMOTE) {
|
||||||
ManageStateRemote();
|
ManageStateRemote();
|
||||||
} else if(eType == MASTERNODE_LOCAL) {
|
} else if(eType == MASTERNODE_LOCAL) {
|
||||||
ManageStateLocal();
|
// Try Remote Start first so the started local masternode can be restarted without recreate masternode broadcast.
|
||||||
|
ManageStateRemote();
|
||||||
|
if(nState != ACTIVE_MASTERNODE_STARTED)
|
||||||
|
ManageStateLocal();
|
||||||
}
|
}
|
||||||
|
|
||||||
SendMasternodePing();
|
SendMasternodePing();
|
||||||
@ -301,9 +304,6 @@ void CActiveMasternode::ManageStateLocal()
|
|||||||
fPingerEnabled = true;
|
fPingerEnabled = true;
|
||||||
nState = ACTIVE_MASTERNODE_STARTED;
|
nState = ACTIVE_MASTERNODE_STARTED;
|
||||||
|
|
||||||
masternode_info_t infoMn = mnodeman.GetMasternodeInfo(pubKeyMasternode);
|
|
||||||
if(infoMn.fInfoValid && CMasternode::IsValidStateForAutoStart(infoMn.nActiveState)) return; // sending ping should be enough
|
|
||||||
|
|
||||||
//update to masternode list
|
//update to masternode list
|
||||||
LogPrintf("CActiveMasternode::ManageStateLocal -- Update Masternode List\n");
|
LogPrintf("CActiveMasternode::ManageStateLocal -- Update Masternode List\n");
|
||||||
mnodeman.UpdateMasternodeList(mnb);
|
mnodeman.UpdateMasternodeList(mnb);
|
||||||
|
Loading…
Reference in New Issue
Block a user