From 61b6e4cc67abd61a0dbffe271ee3f355b2e772bc Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Tue, 29 Dec 2020 19:58:53 -0500 Subject: Add aggressive restrictions to pre-handshake p2p buffer limit --- src/cryptonote_basic/connection_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cryptonote_basic/connection_context.h') diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h index 9e012f8f5..e5c00d4f3 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -55,6 +55,8 @@ namespace cryptonote state_normal }; + bool handshake_complete() const noexcept { return m_state != state_before_handshake; } + state m_state; std::vector> m_needed_objects; std::unordered_set m_requested_objects; -- cgit v1.2.3