Added additional material for consensus.

This commit is contained in:
Revertron
2021-04-29 19:27:45 +02:00
parent a4d9a64989
commit 6d4dfb282f
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -580,6 +580,8 @@ fn handle_block(context: Arc<Mutex<Context>>, peers: &mut Peers, token: &Token,
if zone {
context.bus.post(crate::event::Event::ZonesChanged);
}
} else {
debug!("Fork in not better than our block, dropping.");
}
let height = context.chain.get_height();
context.chain.update_max_height(height);