Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum bootstrap node version #1184

Merged
merged 1 commit into from
Sep 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rai/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ rai::endpoint rai::peer_container::bootstrap_peer ()
;
for (auto i (peers.get<4> ().begin ()), n (peers.get<4> ().end ()); i != n;)
{
if (i->network_version >= 0x5)
if (i->network_version >= protocol_version_bootstrap_min)
{
result = i->endpoint;
peers.get<4> ().modify (i, [](rai::peer_information & peer_a) {
Expand Down
3 changes: 3 additions & 0 deletions rai/secure/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const uint8_t protocol_version = 0x0f;
const uint8_t protocol_version_min = 0x07;
const uint8_t node_id_version = 0x0c;

/** Do not bootstrap from nodes older than this version */
const uint8_t protocol_version_bootstrap_min = 0x0d;

/**
* A key pair. The private key is generated from the random pool, or passed in
* as a hex string. The public key is derived using ed25519.
Expand Down