diff options
| author | tobtoht <tob@featherwallet.org> | 2025-01-22 22:47:10 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-01-22 22:47:10 +0000 |
| commit | 00e582a2b1bc6872dd8bddb31bd95bab79185ce6 (patch) | |
| tree | a25e500c41d2a50b90192d59ba76d727b8e56da6 /tests/unit_tests | |
| parent | e488bc838a73f238fb31084dad344350c005654e (diff) | |
| parent | 0cd74568d6a7709c82cb12012ec952c8d00d6c96 (diff) | |
| download | monzero-core-00e582a2b1bc6872dd8bddb31bd95bab79185ce6.tar.gz monzero-core-00e582a2b1bc6872dd8bddb31bd95bab79185ce6.tar.xz monzero-core-00e582a2b1bc6872dd8bddb31bd95bab79185ce6.zip | |
Merge pull request #9460
0cd74568d Cleanup TCP throttling code (performance) + move connection checks (Lee *!* Clagett)
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/node_server.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp index 6a564e7ed..09b1d5461 100644 --- a/tests/unit_tests/node_server.cpp +++ b/tests/unit_tests/node_server.cpp @@ -237,6 +237,18 @@ TEST(ban, subnet) test_core pr_core; cryptonote::t_cryptonote_protocol_handler<test_core> cprotocol(pr_core, NULL); Server server(cprotocol); + { + boost::program_options::options_description opts{}; + Server::init_options(opts); + cryptonote::core::init_options(opts); + + char** args = nullptr; + boost::program_options::variables_map vm; + boost::program_options::store( + boost::program_options::parse_command_line(0, args, opts), vm + ); + server.init(vm); + } cprotocol.set_p2p_endpoint(&server); ASSERT_TRUE(server.block_subnet(MAKE_IPV4_SUBNET(1,2,3,4,24), 10)); |
