diff --git a/nano/node/bootstrap/bootstrap_config.hpp b/nano/node/bootstrap/bootstrap_config.hpp index cd2c9b8d7..f94b1d151 100644 --- a/nano/node/bootstrap/bootstrap_config.hpp +++ b/nano/node/bootstrap/bootstrap_config.hpp @@ -44,6 +44,7 @@ public: public: bool enable{ true }; + bool enable_scan{ true }; bool enable_database_scan{ false }; bool enable_dependency_walker{ true }; bool enable_frontier_scan{ true }; diff --git a/nano/node/bootstrap_ascending/service.cpp b/nano/node/bootstrap_ascending/service.cpp index 67ba813c9..ff35244d3 100644 --- a/nano/node/bootstrap_ascending/service.cpp +++ b/nano/node/bootstrap_ascending/service.cpp @@ -79,10 +79,13 @@ void nano::bootstrap_ascending::service::start () return; } - priorities_thread = std::thread ([this] () { - nano::thread_role::set (nano::thread_role::name::ascending_bootstrap); - run_priorities (); - }); + if (config.enable_scan) + { + priorities_thread = std::thread ([this] () { + nano::thread_role::set (nano::thread_role::name::ascending_bootstrap); + run_priorities (); + }); + } if (config.enable_database_scan) {