aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-03-29 21:55:11 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-03-29 21:55:11 -0400
commitb12e195fba8e2b940cc2b9e5a538ced991abd6a3 (patch)
treefa7379dbf1f2084b44b21e0cc5e61faa45dd6fc9 /src/cryptonote_basic
parent570e9b9a07a2c448bc4faacd1f5aef898cfdd5bb (diff)
parentfe632560f42150e31c868db9dd6b2649a0170651 (diff)
downloadmonzero-core-b12e195fba8e2b940cc2b9e5a538ced991abd6a3.tar.gz
monzero-core-b12e195fba8e2b940cc2b9e5a538ced991abd6a3.tar.xz
monzero-core-b12e195fba8e2b940cc2b9e5a538ced991abd6a3.zip
Merge pull request #7620
fe63256 cryptonote_protocol_handler: fix race condition (anon) ded2f3a cryptonote_protocol_handler: add race condition demo (anon)
Diffstat (limited to 'src/cryptonote_basic')
-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)