Skip to content

Commit

Permalink
update nCollateralMinConfBlockHash for local (hot) masternode on mn s…
Browse files Browse the repository at this point in the history
…tart (#1689)
  • Loading branch information
UdjinM6 authored Oct 17, 2017
1 parent f5286b1 commit 46342b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/activemasternode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 46342b2

Please sign in to comment.