From e0ff54d062b7b780247b2d41803f622c4f078a83 Mon Sep 17 00:00:00 2001 From: Hansie Odendaal Date: Thu, 26 Sep 2024 16:46:19 +0200 Subject: [PATCH] format --- .../src/block_template_protocol.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/applications/minotari_merge_mining_proxy/src/block_template_protocol.rs b/applications/minotari_merge_mining_proxy/src/block_template_protocol.rs index 5e470a787d..8acc530d88 100644 --- a/applications/minotari_merge_mining_proxy/src/block_template_protocol.rs +++ b/applications/minotari_merge_mining_proxy/src/block_template_protocol.rs @@ -196,10 +196,7 @@ impl BlockTemplateProtocol<'_> { .cloned() .ok_or_else(|| MmProxyError::GrpcResponseMissingField("miner_data"))?; - ( - add_monero_data(block, monero_mining_data.clone(), miner_data)?, - height, - ) + (add_monero_data(block, monero_mining_data.clone(), miner_data)?, height) }; block_templates @@ -214,10 +211,7 @@ impl BlockTemplateProtocol<'_> { .remove_new_block_template(best_block_hash.to_vec()) .await; - if !self - .check_expected_tip_and_parent(best_block_hash.as_slice()) - .await? - { + if !self.check_expected_tip_and_parent(best_block_hash.as_slice()).await? { debug!( target: LOG_TARGET, "Template (height {}) not based on current chain tip anymore (with hash {}), fetching a new block \ @@ -349,10 +343,7 @@ impl BlockTemplateProtocol<'_> { /// Check if the height and parent hash is still as expected, so that it still makes sense to compute the block for /// that height. - async fn check_expected_tip_and_parent( - &mut self, - best_block_hash: &[u8], - ) -> Result { + async fn check_expected_tip_and_parent(&mut self, best_block_hash: &[u8]) -> Result { let tip = self .base_node_client .clone()