diff options
| author | Matt Corallo <[email protected]> | 2017-02-06 17:38:57 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-10 11:32:41 -0500 |
| commit | d8f2b8a8c032b83a3bd90750e58abaeece7e34e7 (patch) | |
| tree | 3c68096b426ed16e3be504c7f6cd4b767d05c1d0 /src | |
| parent | Move [clean|str]SubVer writes/copyStats into a lock (diff) | |
| download | discoin-d8f2b8a8c032b83a3bd90750e58abaeece7e34e7.tar.xz discoin-d8f2b8a8c032b83a3bd90750e58abaeece7e34e7.zip | |
Make nTimeBestReceived atomic
Diffstat (limited to 'src')
| -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 b5feac2d5..62397e68c 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 { |