diff options
author | Matt Corallo <git@bluematt.me> | 2017-02-06 17:38:57 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-02-10 11:32:41 -0500 |
commit | d8f2b8a8c032b83a3bd90750e58abaeece7e34e7 (patch) | |
tree | 3c68096b426ed16e3be504c7f6cd4b767d05c1d0 | |
parent | 22b4966a29501c4f3f2e970ac5008fbd91e665a9 (diff) |
Make nTimeBestReceived atomic
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index b5feac2d59..62397e68ce 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -36,7 +36,7 @@ # error "Bitcoin cannot be compiled without assertions." #endif -int64_t nTimeBestReceived = 0; // Used only to inform the wallet of when we last received a block +std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of when we last received a block struct IteratorComparator { |