File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ CWaitableCriticalSection csBestBlock;
6666CConditionVariable cvBlockChange;
6767int nScriptCheckThreads = 0 ;
6868std::atomic_bool fImporting (false );
69- bool fReindex = false ;
69+ std::atomic_bool fReindex ( false ) ;
7070bool fTxIndex = false ;
7171bool fHavePruned = false ;
7272bool fPruneMode = false ;
@@ -3523,7 +3523,7 @@ bool static LoadBlockIndexDB(const CChainParams& chainparams)
35233523 // Check whether we need to continue reindexing
35243524 bool fReindexing = false ;
35253525 pblocktree->ReadReindexing (fReindexing );
3526- fReindex |= fReindexing ;
3526+ if ( fReindexing ) fReindex = true ;
35273527
35283528 // Check whether we have a transaction index
35293529 pblocktree->ReadFlag (" txindex" , fTxIndex );
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ extern const std::string strMessageMagic;
167167extern CWaitableCriticalSection csBestBlock;
168168extern CConditionVariable cvBlockChange;
169169extern std::atomic_bool fImporting ;
170- extern bool fReindex ;
170+ extern std::atomic_bool fReindex ;
171171extern int nScriptCheckThreads;
172172extern bool fTxIndex ;
173173extern bool fIsBareMultisigStd ;
You can’t perform that action at this time.
0 commit comments