Enabling ascending bootstrap.
Co-authored-by: Piotr Wójcik <3044353+pwojcikdev@users.noreply.github.com> Co-authored-by: gr0vity-dev <85646666+gr0vity-dev@users.noreply.github.com>
This commit is contained in:
parent
1d1d152696
commit
87f61d8382
2 changed files with 4 additions and 4 deletions
|
@ -172,8 +172,8 @@ void nano::bootstrap_connections::connect_client (nano::tcp_endpoint const & end
|
|||
case boost::system::errc::connection_refused:
|
||||
case boost::system::errc::operation_canceled:
|
||||
case boost::system::errc::timed_out:
|
||||
case 995: //Windows The I/O operation has been aborted because of either a thread exit or an application request
|
||||
case 10061: //Windows No connection could be made because the target machine actively refused it
|
||||
case 995: // Windows The I/O operation has been aborted because of either a thread exit or an application request
|
||||
case 10061: // Windows No connection could be made because the target machine actively refused it
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ void nano::bootstrap_connections::populate_connections (bool repeat)
|
|||
// Not many peers respond, need to try to make more connections than we need.
|
||||
for (auto i = 0u; i < delta; i++)
|
||||
{
|
||||
auto endpoint (node.network.bootstrap_peer ());
|
||||
auto endpoint (node.network.bootstrap_peer ()); // Legacy bootstrap is compatible with older version of protocol
|
||||
if (endpoint != nano::tcp_endpoint (boost::asio::ip::address_v6::any (), 0) && (node.flags.allow_bootstrap_peers_duplicates || endpoints.find (endpoint) == endpoints.end ()) && !node.network.excluded_peers.check (endpoint))
|
||||
{
|
||||
connect_client (endpoint);
|
||||
|
|
|
@ -140,7 +140,7 @@ public:
|
|||
bool disable_bootstrap_bulk_pull_server{ false };
|
||||
bool disable_bootstrap_bulk_push_client{ false };
|
||||
bool disable_ongoing_bootstrap{ false }; // For testing only
|
||||
bool disable_ascending_bootstrap{ true };
|
||||
bool disable_ascending_bootstrap{ false };
|
||||
bool disable_rep_crawler{ false };
|
||||
bool disable_request_loop{ false }; // For testing only
|
||||
bool disable_tcp_realtime{ false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue