Skip to content
Snippets Groups Projects
Unverified Commit fd4cce48 authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

NetworkEngine: insertNode tells routing table

parent df15d3d4
Branches
Tags
No related merge requests found
......@@ -350,7 +350,9 @@ public:
void processMessage(const uint8_t *buf, size_t buflen, const sockaddr* from, socklen_t fromlen);
std::shared_ptr<Node> insertNode(const InfoHash& myid, const sockaddr* from, socklen_t fromlen) {
return cache.getNode(myid, from, fromlen, scheduler.time(), 0);
auto n = cache.getNode(myid, from, fromlen, scheduler.time(), 0);
onNewNode(n, 0);
return n;
}
std::vector<unsigned> getNodeMessageStats(bool in) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment