Remove keepalive callback from add_initial_peer.
This commit is contained in:
parent
ff76c1eb37
commit
c12ee369db
1 changed files with 1 additions and 7 deletions
|
|
@ -1213,13 +1213,7 @@ void nano::node::add_initial_peers ()
|
||||||
nano::endpoint endpoint (boost::asio::ip::address_v6 (i->first.address_bytes ()), i->first.port ());
|
nano::endpoint endpoint (boost::asio::ip::address_v6 (i->first.address_bytes ()), i->first.port ());
|
||||||
if (!network.reachout (endpoint, config.allow_local_peers))
|
if (!network.reachout (endpoint, config.allow_local_peers))
|
||||||
{
|
{
|
||||||
std::weak_ptr<nano::node> node_w (shared_from_this ());
|
network.tcp_channels.start_tcp (endpoint);
|
||||||
network.tcp_channels.start_tcp (endpoint, [node_w] (std::shared_ptr<nano::transport::channel> const & channel_a) {
|
|
||||||
if (auto node_l = node_w.lock ())
|
|
||||||
{
|
|
||||||
node_l->network.send_keepalive (channel_a);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue