diff --git a/nano/node/node.cpp b/nano/node/node.cpp index 44221879a7..00216c26fb 100644 --- a/nano/node/node.cpp +++ b/nano/node/node.cpp @@ -319,14 +319,7 @@ nano::node::node (boost::asio::io_context & io_ctx_a, boost::filesystem::path co } }); observers.endpoint.add ([this] (std::shared_ptr const & channel_a) { - if (channel_a->get_type () == nano::transport::transport_type::udp) - { - this->network.send_keepalive (channel_a); - } - else - { - this->network.send_keepalive_self (channel_a); - } + this->network.send_keepalive_self (channel_a); }); observers.vote.add ([this] (std::shared_ptr vote_a, std::shared_ptr const & channel_a, nano::vote_code code_a) { debug_assert (code_a != nano::vote_code::invalid); diff --git a/nano/node/transport/transport.hpp b/nano/node/transport/transport.hpp index 5d1b7ed954..69d794327d 100644 --- a/nano/node/transport/transport.hpp +++ b/nano/node/transport/transport.hpp @@ -28,10 +28,9 @@ namespace transport enum class transport_type : uint8_t { undefined = 0, - udp = 1, - tcp = 2, - loopback = 3, - fake = 4 + tcp = 1, + loopback = 2, + fake = 3 }; class channel {