A fix for miner stuck after dropped signing.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "alfis"
|
name = "alfis"
|
||||||
version = "0.4.29"
|
version = "0.4.30"
|
||||||
authors = ["Revertron <alfis@revertron.com>"]
|
authors = ["Revertron <alfis@revertron.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|||||||
@@ -363,6 +363,7 @@ fn find_hash(context: Arc<Mutex<Context>>, mut block: Block, running: Arc<Atomic
|
|||||||
if context.chain.get_height() >= block.index {
|
if context.chain.get_height() >= block.index {
|
||||||
if !full {
|
if !full {
|
||||||
info!("Blockchain changed while mining signing block, dropping work");
|
info!("Blockchain changed while mining signing block, dropping work");
|
||||||
|
running.store(false, Ordering::SeqCst);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user