Made it possible to run ALFIS without settings file. It will be created if not found.

This commit is contained in:
Revertron
2021-03-16 14:00:14 +01:00
parent 394463ef15
commit c7e845af05
6 changed files with 62 additions and 25 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ fn mine_locker_block(context: Arc<Mutex<Context>>) {
if lockers.contains(&context.keystore.get_public()) {
info!("We have an honor to mine locker block!");
context.bus.post(crate::event::Event::ActionMineLocker { index: block.index + 1, hash: block.hash });
} else {
} else if !lockers.is_empty() {
info!("Locker block must be mined by other nodes");
}
}