Tweaks and cleaning after rebase
@@ -369,16 +369,12 @@ async fn process_and_propagate_new_ref(
tip: Tip,
new_block_ref: Arc<Ref>,
network_msg_box: MessageBox<NetworkMsg>,
- stats_counter: StatsCounter,
) -> Result<(), Error> {
let header = new_block_ref.header().clone();
let hash = header.hash();
debug!(logger, "processing the new block and propagating"; "hash" => %hash);
- let block = blockchain.storage().get(hash).await?;
- stats_counter.set_tip_block(block);
-
process_new_ref(logger, blockchain, tip, new_block_ref).await?;
debug!(logger, "propagating block to the network"; "hash" => %hash);
@@ -418,7 +414,6 @@ async fn process_leadership_block(
blockchain_tip,
Arc::clone(&new_block_ref),
network_msg_box,
- stats_counter,
)
.await?;
@@ -585,7 +580,6 @@ async fn process_network_blocks(
blockchain_tip,
Arc::clone(&new_block_ref),
network_msg_box,
- stats_counter,
)
.await?;
Ok(r)
