Code rearrangement.

This commit is contained in:
Revertron
2021-05-13 20:24:04 +02:00
parent 7ba0da27d1
commit 6dceac8612
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "alfis" name = "alfis"
version = "0.5.3" version = "0.5.4"
authors = ["Revertron <alfis@revertron.com>"] authors = ["Revertron <alfis@revertron.com>"]
edition = "2018" edition = "2018"
build = "build.rs" build = "build.rs"
+2 -1
View File
@@ -216,7 +216,8 @@ impl Miner {
mining.store(false, Ordering::SeqCst); mining.store(false, Ordering::SeqCst);
return; return;
} }
match context.lock().unwrap().chain.update_sign_block_for_mining(job.block) { let new_block = context.lock().unwrap().chain.update_sign_block_for_mining(job.block);
match new_block {
None => { None => {
warn!("We missed block to lock"); warn!("We missed block to lock");
post(Event::MinerStopped { success: false, full: false }); post(Event::MinerStopped { success: false, full: false });