aboutsummaryrefslogtreecommitdiff
path: root/tests/net_load_tests/net_load_tests.h
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-01 22:35:59 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-01 22:35:59 -0800
commit16c780d5688c7931ca6f55537c9cc8c1d4abc3dd (patch)
tree9efba2d35c48d1f6b592d54211b1bd52bfed0a36 /tests/net_load_tests/net_load_tests.h
parentMerge pull request #7246 (diff)
parentAdd aggressive restrictions to pre-handshake p2p buffer limit (diff)
downloadmonero-16c780d5688c7931ca6f55537c9cc8c1d4abc3dd.tar.xz
Merge pull request #7250
61b6e4cc6 Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
Diffstat (limited to 'tests/net_load_tests/net_load_tests.h')
-rw-r--r--tests/net_load_tests/net_load_tests.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/net_load_tests/net_load_tests.h b/tests/net_load_tests/net_load_tests.h
index e7e0ee247..532017efd 100644
--- a/tests/net_load_tests/net_load_tests.h
+++ b/tests/net_load_tests/net_load_tests.h
@@ -48,6 +48,8 @@ namespace net_load_tests
struct test_connection_context : epee::net_utils::connection_context_base
{
test_connection_context(): epee::net_utils::connection_context_base(boost::uuids::nil_uuid(), {}, false, false), m_closed(false) {}
+ static constexpr int handshake_command() noexcept { return 1001; }
+ static constexpr bool handshake_complete() noexcept { return true; }
volatile bool m_closed;
};