From 96f42d8a12871b8d5c4e31fd27d8135f97c6b3e0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 6 Feb 2017 12:15:30 -0500 Subject: [PATCH] Make nStartingHeight atomic --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index 4bbcfac88b..566284c70b 100644 --- a/src/net.h +++ b/src/net.h @@ -628,7 +628,7 @@ protected: public: uint256 hashContinue; - int nStartingHeight; + std::atomic nStartingHeight; // flood relay std::vector vAddrToSend;