update nCollateralMinConfBlockHash for local (hot) masternode on mn start (#1689)

This commit is contained in:
UdjinM6 2017-10-17 19:41:43 +03:00 committed by GitHub
parent f5286b1799
commit 46342b2e8a

View File

@ -308,6 +308,12 @@ void CActiveMasternode::ManageStateLocal(CConnman& connman)
return; return;
} }
{
LOCK(cs_main);
// remember the hash of the block where masternode collateral had minimum required confirmations
mnb.nCollateralMinConfBlockHash = chainActive[GetUTXOHeight(outpoint) + Params().GetConsensus().nMasternodeMinimumConfirmations - 1]->GetBlockHash();
}
fPingerEnabled = true; fPingerEnabled = true;
nState = ACTIVE_MASTERNODE_STARTED; nState = ACTIVE_MASTERNODE_STARTED;