Allow disabling priority accounts scan

This commit is contained in:
Piotr Wójcik 2024-09-26 18:20:20 +02:00
commit 8bec4ee12a
2 changed files with 8 additions and 4 deletions

View file

@ -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 };

View file

@ -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)
{