try fix for chickenpool

This commit is contained in:
blackjok3r
2019-06-14 01:16:59 +08:00
parent 3c41ff9a17
commit 0d7c2f33fc

View File

@@ -225,6 +225,7 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32
CBlockIndex* pindexPrev = 0;
{
boost::this_thread::interruption_point(); // exit thread before entering locks.
ENTER_CRITICAL_SECTION(cs_main);
ENTER_CRITICAL_SECTION(mempool.cs);
pindexPrev = chainActive.LastTip();