Lock cs_main early if a block is found.
Showing with 3 additions and 0 deletions
|...||...||@@ -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|
|//Lock main here to prevent deadlock with budgetmanager|
|if (!ProcessNewBlock(state, NULL, pblock))|
|return error("CrownMiner : ProcessNewBlock, block not accepted");|