Add tiny comments when using `set_tip_block`
@@ -409,7 +409,7 @@ async fn process_leadership_block(
try_request_fragment_removal(&mut tx_msg_box, fragments, new_block_ref.header())
.map_err(|_| "cannot remove fragments from pool".to_string())?;
- // Add block to
+ // Track block as new new tip block
stats_counter.set_tip_block(Some(block.clone()));
process_and_propagate_new_ref(
@@ -550,6 +550,7 @@ async fn process_network_blocks(
match res {
Ok(Some(r)) => {
stats_counter.add_block_recv_cnt(1);
+ // Track block as new new tip block
stats_counter.set_tip_block(Some(block.clone()));
stream = new_stream;
candidate = Some(r);
