From ea57be58320d57186e0083ca6a81c1a201e34cea Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sun, 6 Aug 2017 22:56:57 -0500 Subject: [PATCH] bootstrap_attempt::pulling is accessed in multiple threads and not always guarded by a mutex which could cause consistency errors hanging bootstrapping. --- rai/node/bootstrap.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rai/node/bootstrap.hpp b/rai/node/bootstrap.hpp index d8ee56f8..024db7de 100644 --- a/rai/node/bootstrap.hpp +++ b/rai/node/bootstrap.hpp @@ -77,7 +77,7 @@ public: void requeue_pull (rai::pull_info const &); std::deque pulls; std::atomic connections; - unsigned pulling; + std::atomic pulling; std::shared_ptr node; rai::attempt_state state; std::unordered_set attempted;