diff --git a/src/main.cpp b/src/main.cpp index 51b719128..ec52f1a6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -65,7 +65,7 @@ CCriticalSection cs_main; BlockMap mapBlockIndex; CChain chainActive; CBlockIndex *pindexBestHeader = NULL; -static int64_t nTimeBestReceived = 0; +static std::atomic nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block CWaitableCriticalSection csBestBlock; CConditionVariable cvBlockChange; int nScriptCheckThreads = 0;