Fixed consensus error. Added a delay before signing.

This commit is contained in:
Revertron
2021-04-19 21:00:32 +02:00
parent 3f48919adf
commit 2680a7da70
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -276,6 +276,10 @@ fn find_hash(context: Arc<Mutex<Context>>, mut block: Block, running: Arc<Atomic
if block.index > 1 {
if let Ok(context) = context.lock() {
if context.chain.height() >= block.index {
if !full {
info!("Blockchain changed while mining signing block, dropping work");
return None;
}
break;
}
}