Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up all known races/platform-specific UB at the time PR was opened #9708

Merged
merged 10 commits into from
Feb 11, 2017
Prev Previous commit
Next Next commit
Make nTimeBestReceived atomic
  • Loading branch information
TheBlueMatt committed Feb 10, 2017
commit d8f2b8a8c032b83a3bd90750e58abaeece7e34e7
2 changes: 1 addition & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down