aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-06 17:38:57 -0500
committerMatt Corallo <git@bluematt.me>2017-02-10 11:32:41 -0500
commitd8f2b8a8c032b83a3bd90750e58abaeece7e34e7 (patch)
tree3c68096b426ed16e3be504c7f6cd4b767d05c1d0 /src/net_processing.cpp
parent22b4966a29501c4f3f2e970ac5008fbd91e665a9 (diff)
Make nTimeBestReceived atomic
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
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
{