mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
541 B
C++
32 lines
541 B
C++
#include <tooling/hive_router.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
HiveRouter::HiveRouter(
|
|
std::shared_ptr<llarp::thread::ThreadPool> worker,
|
|
llarp_ev_loop_ptr netloop,
|
|
std::shared_ptr<llarp::Logic> logic)
|
|
: Router(worker, netloop, logic)
|
|
{
|
|
}
|
|
|
|
bool
|
|
HiveRouter::disableGossipingRC_TestingOnly()
|
|
{
|
|
return m_disableGossiping;
|
|
}
|
|
|
|
void
|
|
HiveRouter::disableGossiping()
|
|
{
|
|
m_disableGossiping = false;
|
|
}
|
|
|
|
void
|
|
HiveRouter::enableGossiping()
|
|
{
|
|
m_disableGossiping = true;
|
|
}
|
|
|
|
} // namespace tooling
|