Remove node_id_version and surrounding logic since it's below the peering version. (#1824)
This commit is contained in:
parent
f08f960c35
commit
cae08d2ea5
2 changed files with 1 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue