From 5677b860e48a0bad45503ca7dd16f6aed571881d Mon Sep 17 00:00:00 2001 From: Revertron Date: Mon, 26 Apr 2021 01:16:34 +0200 Subject: [PATCH] A fix for miner stuck after dropped signing. --- Cargo.toml | 2 +- src/miner.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2323426..b65479f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alfis" -version = "0.4.29" +version = "0.4.30" authors = ["Revertron "] edition = "2018" build = "build.rs" diff --git a/src/miner.rs b/src/miner.rs index ff74deb..a61aef3 100644 --- a/src/miner.rs +++ b/src/miner.rs @@ -363,6 +363,7 @@ fn find_hash(context: Arc>, mut block: Block, running: Arc= block.index { if !full { info!("Blockchain changed while mining signing block, dropping work"); + running.store(false, Ordering::SeqCst); return None; } break;