Remove node_id_version and surrounding logic since it's below the peering version. (#1824)

This commit is contained in:
clemahieu 2019-03-13 20:00:41 +00:00 committed by GitHub
commit cae08d2ea5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View file

@ -44,11 +44,7 @@ bool nano::peer_container::contacted (nano::endpoint const & endpoint_a, unsigne
{
auto endpoint_l (nano::map_endpoint_to_v6 (endpoint_a));
auto should_handshake (false);
if (version_a < nano::node_id_version)
{
insert (endpoint_l, version_a);
}
else if (!known_peer (endpoint_l))
if (!known_peer (endpoint_l))
{
std::lock_guard<std::mutex> lock (mutex);

View file

@ -38,7 +38,6 @@ namespace nano
{
const uint8_t protocol_version = 0x10;
const uint8_t protocol_version_min = 0x0d;
const uint8_t node_id_version = 0x0c;
/*
* Do not bootstrap from nodes older than this version.