1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Specify disabling RC gossiping (testing only) properly

This commit is contained in:
Stephen Shelton 2020-07-06 17:38:41 -06:00
parent 0e99f5bc86
commit 305795315b
No known key found for this signature in database
GPG key ID: EE4BADACCE8B631C
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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_<NetworkConfig>(mod, "NetworkConfig")
.def(py::init<>())

View file

@ -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