Code rearrangement.
This commit is contained in:
+1
-1
@@ -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
@@ -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 });
|
||||||
|
|||||||
Reference in New Issue
Block a user