Allow disabling priority accounts scan
This commit is contained in:
parent
4b65877fe5
commit
8bec4ee12a
2 changed files with 8 additions and 4 deletions
|
|
@ -44,6 +44,7 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool enable{ true };
|
bool enable{ true };
|
||||||
|
bool enable_scan{ true };
|
||||||
bool enable_database_scan{ false };
|
bool enable_database_scan{ false };
|
||||||
bool enable_dependency_walker{ true };
|
bool enable_dependency_walker{ true };
|
||||||
bool enable_frontier_scan{ true };
|
bool enable_frontier_scan{ true };
|
||||||
|
|
|
||||||
|
|
@ -79,10 +79,13 @@ void nano::bootstrap_ascending::service::start ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
priorities_thread = std::thread ([this] () {
|
if (config.enable_scan)
|
||||||
nano::thread_role::set (nano::thread_role::name::ascending_bootstrap);
|
{
|
||||||
run_priorities ();
|
priorities_thread = std::thread ([this] () {
|
||||||
});
|
nano::thread_role::set (nano::thread_role::name::ascending_bootstrap);
|
||||||
|
run_priorities ();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (config.enable_database_scan)
|
if (config.enable_database_scan)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue