cryptonote_protocol_handler: fix race condition

This commit is contained in:
anon 2021-03-22 19:42:46 +00:00
parent ded2f3aa85
commit fe632560f4
No known key found for this signature in database
GPG key ID: D3857C17AA7F968B
2 changed files with 43 additions and 27 deletions

View file

@ -77,6 +77,8 @@ namespace cryptonote
int m_expect_response;
uint64_t m_expect_height;
size_t m_num_requested;
epee::copyable_atomic m_new_stripe_notification{0};
epee::copyable_atomic m_idle_peer_notification{0};
};
inline std::string get_protocol_state_string(cryptonote_connection_context::state s)