bootstrap_attempt::pulling is accessed in multiple threads and not always guarded by a mutex which could cause consistency errors hanging bootstrapping.

This commit is contained in:
clemahieu 2017-08-06 22:56:57 -05:00
commit ea57be5832

View file

@ -77,7 +77,7 @@ public:
void requeue_pull (rai::pull_info const &);
std::deque <rai::pull_info> pulls;
std::atomic <unsigned> connections;
unsigned pulling;
std::atomic <unsigned> pulling;
std::shared_ptr <rai::node> node;
rai::attempt_state state;
std::unordered_set <rai::endpoint> attempted;