diff --git a/llarp/tooling/hive_router.cpp b/llarp/tooling/hive_router.cpp index 0fc74ae39..3a40e2e05 100644 --- a/llarp/tooling/hive_router.cpp +++ b/llarp/tooling/hive_router.cpp @@ -19,13 +19,13 @@ namespace tooling void HiveRouter::disableGossiping() { - m_disableGossiping = false; + m_disableGossiping = true; } void HiveRouter::enableGossiping() { - m_disableGossiping = true; + m_disableGossiping = false; } void diff --git a/pybind/llarp/config.cpp b/pybind/llarp/config.cpp index 2ca9934ee..e38626645 100644 --- a/pybind/llarp/config.cpp +++ b/pybind/llarp/config.cpp @@ -48,7 +48,8 @@ namespace llarp }) .def_readwrite("workerThreads", &RouterConfig::m_workerThreads) .def_readwrite("numNetThreads", &RouterConfig::m_numNetThreads) - .def_readwrite("JobQueueSize", &RouterConfig::m_JobQueueSize); + .def_readwrite("JobQueueSize", &RouterConfig::m_JobQueueSize) + .def_readwrite("enablePeerStats", &RouterConfig::m_enablePeerStats); py::class_(mod, "NetworkConfig") .def(py::init<>()) diff --git a/test/hive/hive.py b/test/hive/hive.py index d78c16c3f..fa6fb88e0 100644 --- a/test/hive/hive.py +++ b/test/hive/hive.py @@ -65,6 +65,7 @@ class RouterHive(object): config.router.nickname = "Router%d" % index config.router.overrideAddress('127.0.0.1:{}'.format(port)) config.router.blockBogons = False + config.router.enablePeerStats = True config.network.enableProfiling = False config.network.routerProfilesFile = "%s/profiles.dat" % dirname