Fixed check for correct sign block.

This commit is contained in:
Revertron
2021-04-21 11:31:55 +02:00
parent 6ed4fb4830
commit f8d47df370
2 changed files with 10 additions and 6 deletions
+4
View File
@@ -856,6 +856,10 @@ impl Chain {
/// Checks if this block is a good signature block
fn is_good_sign_block(&self, block: &Block) -> bool {
// If this is not a signing block
if block.transaction.is_some() {
return true;
}
if let Some(full_block) = &self.last_full_block {
let sign_count = self.get_height() - full_block.index;
if sign_count < BLOCK_SIGNERS_MIN {