diff --git a/nano/node/bootstrap/bootstrap_attempt.cpp b/nano/node/bootstrap/bootstrap_attempt.cpp index 4de17b1e..b14dd723 100644 --- a/nano/node/bootstrap/bootstrap_attempt.cpp +++ b/nano/node/bootstrap/bootstrap_attempt.cpp @@ -113,11 +113,6 @@ std::string nano::bootstrap_attempt::mode_text () return mode_text; } -void nano::bootstrap_attempt::set_start_account (nano::account const &) -{ - debug_assert (mode == nano::bootstrap_mode::legacy); -} - bool nano::bootstrap_attempt::process_block (std::shared_ptr const & block_a, nano::account const & known_account_a, uint64_t pull_blocks_processed, nano::bulk_pull::count_t max_blocks, bool block_expected, unsigned retry_limit) { bool stop_pull (false); diff --git a/nano/node/bootstrap/bootstrap_attempt.hpp b/nano/node/bootstrap/bootstrap_attempt.hpp index add9701b..6cb62c17 100644 --- a/nano/node/bootstrap/bootstrap_attempt.hpp +++ b/nano/node/bootstrap/bootstrap_attempt.hpp @@ -27,7 +27,6 @@ public: void pull_finished (); bool should_log (); std::string mode_text (); - virtual void set_start_account (nano::account const &); virtual bool process_block (std::shared_ptr const &, nano::account const &, uint64_t, nano::bulk_pull::count_t, bool, unsigned); virtual void get_information (boost::property_tree::ptree &) = 0; nano::mutex next_log_mutex; diff --git a/nano/node/bootstrap/bootstrap_legacy.hpp b/nano/node/bootstrap/bootstrap_legacy.hpp index ff2186c8..51423d77 100644 --- a/nano/node/bootstrap/bootstrap_legacy.hpp +++ b/nano/node/bootstrap/bootstrap_legacy.hpp @@ -28,7 +28,7 @@ public: void add_frontier (nano::pull_info const &); void add_bulk_push_target (nano::block_hash const &, nano::block_hash const &); bool request_bulk_push_target (std::pair &); - void set_start_account (nano::account const &) override; + void set_start_account (nano::account const &); void run_start (nano::unique_lock &); void get_information (boost::property_tree::ptree &) override; nano::tcp_endpoint endpoint_frontier_request;