Removed debug prints.

This commit is contained in:
Revertron
2021-04-20 18:52:18 +02:00
parent 161e600290
commit 3fb70d3a74
-5
View File
@@ -303,19 +303,14 @@ impl Chain {
} }
pub fn update_sign_block_for_mining(&self, mut block: Block) -> Option<Block> { pub fn update_sign_block_for_mining(&self, mut block: Block) -> Option<Block> {
info!("11");
if let Some(full_block) = &self.last_full_block { if let Some(full_block) = &self.last_full_block {
info!("22");
let sign_count = self.height() - full_block.index; let sign_count = self.height() - full_block.index;
if sign_count >= BLOCK_SIGNERS_MIN { if sign_count >= BLOCK_SIGNERS_MIN {
info!("23");
return None; return None;
} }
info!("33");
if let Some(last) = &self.last_block { if let Some(last) = &self.last_block {
block.index = last.index + 1; block.index = last.index + 1;
block.prev_block_hash = last.hash.clone(); block.prev_block_hash = last.hash.clone();
info!("44");
return Some(block); return Some(block);
} }
} }