Make fReindex atomic to avoid race

This commit is contained in:
MeshCollider
2017-08-24 13:45:26 +12:00
parent 58d91af59e
commit 35aeabec62
2 changed files with 3 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ extern const std::string strMessageMagic;
extern CWaitableCriticalSection csBestBlock;
extern CConditionVariable cvBlockChange;
extern std::atomic_bool fImporting;
extern bool fReindex;
extern std::atomic_bool fReindex;
extern int nScriptCheckThreads;
extern bool fTxIndex;
extern bool fIsBareMultisigStd;