Avoid bootstrapping from stuck nodes. (#553)
This commit is contained in:
parent
d607c070e7
commit
b07167a90d
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,9 @@
|
|||
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
// Updated 1-27-18
|
||||
constexpr unsigned bootstrap_peer_frontier_minimum = rai::rai_network == rai::rai_networks::rai_live_network ? 339000 : 0;
|
||||
|
||||
rai::block_synchronization::block_synchronization (boost::log::sources::logger_mt & log_a) :
|
||||
log (log_a)
|
||||
{
|
||||
|
@ -420,7 +423,7 @@ void rai::frontier_req_client::received_frontier (boost::system::error_code cons
|
|||
{
|
||||
try
|
||||
{
|
||||
promise.set_value (false);
|
||||
promise.set_value (count < bootstrap_peer_frontier_minimum);
|
||||
}
|
||||
catch (std::future_error &)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue