Skip to content

Commit

Permalink
A fix for miner stuck after dropped signing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Revertron committed Apr 25, 2021
1 parent ef38315 commit 5677b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alfis"
version = "0.4.29"
version = "0.4.30"
authors = ["Revertron <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
1 change: 1 addition & 0 deletions src/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 !full {
info!("Blockchain changed while mining signing block, dropping work");
running.store(false, Ordering::SeqCst);
return None;
}
break;
Expand Down

0 comments on commit 5677b86

Please sign in to comment.