Commit 9e77ac44 authored by Tom Bradshaw's avatar Tom Bradshaw

Lock cs_main early if a block is found.

parent 2f1de615
Pipeline #901 failed with stage
in 25 minutes and 55 seconds
......@@ -537,6 +537,9 @@ bool ProcessBlockFound(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
// Process this block the same as if we had received it from another node
CValidationState state;
//Lock main here to prevent deadlock with budgetmanager
LOCK(cs_main);
if (!ProcessNewBlock(state, NULL, pblock))
return error("CrownMiner : ProcessNewBlock, block not accepted");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment