Skip to content

Commit

Permalink
Make nTimeBestReceived atomic
Browse files Browse the repository at this point in the history
zcash: cherry picked from commit d8f2b8a
zcash: bitcoin/bitcoin#9708
  • Loading branch information
TheBlueMatt authored and str4d committed Apr 1, 2021
1 parent 78e0b89 commit e6eac19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CCriticalSection cs_main;
BlockMap mapBlockIndex;
CChain chainActive;
CBlockIndex *pindexBestHeader = NULL;
static int64_t nTimeBestReceived = 0;
static std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block
CWaitableCriticalSection csBestBlock;
CConditionVariable cvBlockChange;
int nScriptCheckThreads = 0;
Expand Down

0 comments on commit e6eac19

Please sign in to comment.