Browse Source

Make nTimeBestReceived atomic

0.14
Matt Corallo 8 years ago
parent
commit
d8f2b8a8c0
  1. 2
      src/net_processing.cpp

2
src/net_processing.cpp

@ -36,7 +36,7 @@
# error "Bitcoin cannot be compiled without assertions." # error "Bitcoin cannot be compiled without assertions."
#endif #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 struct IteratorComparator
{ {

Loading…
Cancel
Save