Make nTimeBestReceived atomic

This commit is contained in:
Matt Corallo 2017-02-06 17:38:57 -05:00
parent 22b4966a29
commit d8f2b8a8c0

View file

@ -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
{