aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/connection_context.h
diff options
context:
space:
mode:
authoranon <anon [at] nowhere>2021-03-22 19:42:46 +0000
committeranon <anon [at] nowhere>2021-03-22 19:42:46 +0000
commitfe632560f42150e31c868db9dd6b2649a0170651 (patch)
tree92d1acf601daf42ece53987840e65c612578020f /src/cryptonote_basic/connection_context.h
parentcryptonote_protocol_handler: add race condition demo (diff)
downloadmonero-fe632560f42150e31c868db9dd6b2649a0170651.tar.xz
cryptonote_protocol_handler: fix race condition
Diffstat (limited to 'src/cryptonote_basic/connection_context.h')
-rw-r--r--src/cryptonote_basic/connection_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h
index a7d688300..ee26a0c07 100644
--- a/src/cryptonote_basic/connection_context.h
+++ b/src/cryptonote_basic/connection_context.h
@@ -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)