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.
25 lines
576 B
C++
25 lines
576 B
C++
#include <tooling/rc_event.hpp>
|
|
|
|
namespace tooling
|
|
{
|
|
RCGossipReceivedEvent::RCGossipReceivedEvent(const llarp::RouterID& routerID, const llarp::RouterContact& rc)
|
|
: RouterEvent("RCGossipReceivedEvent", routerID, true)
|
|
, rc(rc)
|
|
{
|
|
}
|
|
|
|
std::string
|
|
RCGossipReceivedEvent::ToString() const
|
|
{
|
|
return RouterEvent::ToString() + " ---- other RouterID: " + llarp::RouterID(rc.pubkey).ShortString();
|
|
}
|
|
|
|
std::string
|
|
RCGossipReceivedEvent::LongString() const
|
|
{
|
|
return RouterEvent::ToString() + " ---- RC: " + rc.ToString();
|
|
}
|
|
|
|
} // namespace tooling
|
|
|