diff options
author | Lee Clagett <code@leeclagett.com> | 2020-12-29 19:58:53 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-12-29 19:58:53 -0500 |
commit | 7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d (patch) | |
tree | e90a9666400d19545199b6ed46be34c365cb5c1b /tests/unit_tests/levin.cpp | |
parent | Merge pull request #7222 (diff) | |
download | monero-7d67a2dde0d2547e19650f5c6fa33d54b3f8b14d.tar.xz |
Add aggressive restrictions to pre-handshake p2p buffer limit
Diffstat (limited to 'tests/unit_tests/levin.cpp')
-rw-r--r-- | tests/unit_tests/levin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/levin.cpp b/tests/unit_tests/levin.cpp index 22638942d..76e3282e0 100644 --- a/tests/unit_tests/levin.cpp +++ b/tests/unit_tests/levin.cpp @@ -178,6 +178,7 @@ namespace { using base_type = epee::net_utils::connection_context_base; static_cast<base_type&>(context_) = base_type{random_generator(), {}, is_incoming, false}; + context_.m_state = cryptonote::cryptonote_connection_context::state_normal; handler_.after_init_connection(); } |