#include #include #include #include namespace tooling { PathBuildAttemptEvent::PathBuildAttemptEvent(const llarp::RouterID& routerID, std::vector hops) : routerID(routerID), hops(hops) { } void PathBuildAttemptEvent::Process(RouterHive& hive) const { hive.ProcessPathBuildAttempt(*this); } std::string PathBuildAttemptEvent::ToString() const { std::string result = "PathBuildAttemptEvent ["; result += routerID.ToString().substr(0, 8); result += "] ---- ["; size_t i = 0; for (const auto& hop : hops) { i++; result += hop.rc.pubkey.ToString().substr(0, 8); result += "]"; if (i != hops.size()) { result += " -> ["; } } return result; } } // namespace tooling