Skip to content

Commit

Permalink
Merge pull request #317 from zcoinofficial/deadlock-fix
Browse files Browse the repository at this point in the history
Fix for potential deadlock when running builtin miner
  • Loading branch information
psolstice committed Dec 4, 2018
2 parents f9e690e + a592060 commit 24f13ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ void static ZcoinMiner(const CChainParams &chainparams) {
fvNodesEmpty = vNodes.empty();
}
{
LOCK(cs_main);
LOCK2(cs_main, mempool.cs);
int nCount = 0;
fHasZnodesWinnerForNextBlock =
params.IsRegtest() ||
Expand Down

0 comments on commit 24f13ca

Please sign in to comment.