diff --git a/src/activemasternode.cpp b/src/activemasternode.cpp index dbe40f645..02808dc14 100644 --- a/src/activemasternode.cpp +++ b/src/activemasternode.cpp @@ -308,6 +308,12 @@ void CActiveMasternode::ManageStateLocal(CConnman& connman) 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; nState = ACTIVE_MASTERNODE_STARTED;