Browse Source

Merge #7821: init: allow shutdown during 'Activating best chain...'

07398e8 init: allow shutdown during 'Activating best chain...' (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 8 years ago
parent
commit
bbaf5976af
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/main.cpp

2
src/main.cpp

@ -2877,6 +2877,8 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, @@ -2877,6 +2877,8 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
CBlockIndex *pindexMostWork = NULL;
do {
boost::this_thread::interruption_point();
if (ShutdownRequested())
break;
CBlockIndex *pindexNewTip = NULL;
const CBlockIndex *pindexFork;

Loading…
Cancel
Save