Returned low thread priorty as it seems after thorough tests that there is an impact afterall. But this functionality is now controlled by option 'mining.lower'.

This commit is contained in:
Revertron
2021-04-10 14:03:52 +02:00
parent a74a0733ac
commit 3900790f03
7 changed files with 46 additions and 8 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ impl Chain {
/// Reads options from DB or initializes and writes them to DB if not found
fn init_db(&mut self) {
let options = self.get_options();
if !self.origin.is_zero() && !self.origin.is_zero() && self.origin.to_string() != options.origin {
if !self.origin.is_zero() && !options.origin.is_empty() && self.origin.to_string() != options.origin {
self.clear_db();
}
if options.version < DB_VERSION {