diff options
| author | MeshCollider <[email protected]> | 2017-08-24 13:45:26 +1200 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2017-09-07 12:00:30 +1200 |
| commit | 35aeabec62cf10f3c0de297b1189f0a669b69d6e (patch) | |
| tree | f30b94218efff39df31876f200f1e25d862eaf27 /src/validation.h | |
| parent | Fix race for mapBlockIndex in AppInitMain (diff) | |
| download | discoin-35aeabec62cf10f3c0de297b1189f0a669b69d6e.tar.xz discoin-35aeabec62cf10f3c0de297b1189f0a669b69d6e.zip | |
Make fReindex atomic to avoid race
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h index d0f6cdc13..10511fce3 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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; |