diff options
author | anon <anon [at] nowhere> | 2021-09-20 20:58:23 +0000 |
---|---|---|
committer | anon <anon [at] nowhere> | 2021-09-20 20:58:23 +0000 |
commit | 9154883f3ef76c54552adcb0fddffe135d206cf6 (patch) | |
tree | d39a8ccfdeecd6b60b798f412f1255df4b8b3aa2 /src/p2p/net_node.h | |
parent | node_server: add race condition demo (diff) | |
download | monero-9154883f3ef76c54552adcb0fddffe135d206cf6.tar.xz |
node_server: fix race condition
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index f2888674b..35e775163 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -111,15 +111,11 @@ namespace nodetool struct p2p_connection_context_t: base_type //t_payload_net_handler::connection_context //public net_utils::connection_context_base { p2p_connection_context_t() - : fluff_txs(), - flush_time(std::chrono::steady_clock::time_point::max()), - peer_id(0), + : peer_id(0), support_flags(0), m_in_timedsync(false) {} - std::vector<cryptonote::blobdata> fluff_txs; - std::chrono::steady_clock::time_point flush_time; peerid_type peer_id; uint32_t support_flags; bool m_in_timedsync; |