mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
2014 network limit 1.0a +utils +toc -doc -drmonero
commands and options for network limiting works very well e.g. for 50 KiB/sec up and down ToS (QoS) flag peer number limit TODO some spikes in ingress/download TODO problems when other up and down limit added "otshell utils" - simple logging (with colors, text files channels)
This commit is contained in:
parent
e728992803
commit
eabb519605
40 changed files with 4016 additions and 206 deletions
|
@ -38,6 +38,8 @@ add_executable(core_proxy
|
|||
target_link_libraries(core_proxy
|
||||
LINK_PRIVATE
|
||||
cryptonote_core
|
||||
cryptonote_protocol
|
||||
p2p
|
||||
${UPNP_LIBRARIES}
|
||||
${Boost_CHRONO_LIBRARY}
|
||||
${Boost_FILESYSTEM_LIBRARY}
|
||||
|
|
|
@ -81,5 +81,6 @@ namespace tests
|
|||
bool on_idle(){return true;}
|
||||
bool find_blockchain_supplement(const std::list<crypto::hash>& qblock_ids, cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request& resp){return true;}
|
||||
bool handle_get_objects(cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request& arg, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request& rsp, cryptonote::cryptonote_connection_context& context){return true;}
|
||||
cryptonote::blockchain_storage &get_blockchain_storage() { throw std::runtime_error("Called invalid member function: please never call get_blockchain_storage on the TESTING class proxy_core."); }
|
||||
};
|
||||
}
|
||||
|
|
|
@ -37,6 +37,8 @@ add_executable(net_load_tests_clt
|
|||
${clt_headers})
|
||||
target_link_libraries(net_load_tests_clt
|
||||
LINK_PRIVATE
|
||||
otshell_utils
|
||||
p2p
|
||||
${GTEST_MAIN_LIBRARIES}
|
||||
${Boost_CHRONO_LIBRARY}
|
||||
${Boost_DATE_TIME_LIBRARY}
|
||||
|
@ -56,6 +58,8 @@ add_executable(net_load_tests_srv
|
|||
${srv_headers})
|
||||
target_link_libraries(net_load_tests_srv
|
||||
LINK_PRIVATE
|
||||
otshell_utils
|
||||
p2p
|
||||
${GTEST_MAIN_LIBRARIES}
|
||||
${Boost_CHRONO_LIBRARY}
|
||||
${Boost_DATE_TIME_LIBRARY}
|
||||
|
|
|
@ -44,7 +44,10 @@
|
|||
|
||||
#include "net_load_tests.h"
|
||||
|
||||
#include "../../contrib/otshell_utils/utils.hpp"
|
||||
|
||||
using namespace net_load_tests;
|
||||
using namespace nOT::nUtils;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
|
@ -58,6 +58,7 @@ target_link_libraries(unit_tests
|
|||
cryptonote_core
|
||||
rpc
|
||||
wallet
|
||||
p2p
|
||||
${GTEST_MAIN_LIBRARIES}
|
||||
${Boost_CHRONO_LIBRARY}
|
||||
${Boost_REGEX_LIBRARY}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue