From 85b88596930a98bfe14b1e155708d8c19862390f Mon Sep 17 00:00:00 2001 From: fi3 Date: Thu, 5 Oct 2023 19:33:52 +0200 Subject: [PATCH] Fix fmt --- .../roles-logic-sv2/src/channel_logic/channel_factory.rs | 9 +++------ protocols/v2/roles-logic-sv2/src/job_creator.rs | 3 ++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/protocols/v2/roles-logic-sv2/src/channel_logic/channel_factory.rs b/protocols/v2/roles-logic-sv2/src/channel_logic/channel_factory.rs index 559758927..3ad546a79 100644 --- a/protocols/v2/roles-logic-sv2/src/channel_logic/channel_factory.rs +++ b/protocols/v2/roles-logic-sv2/src/channel_logic/channel_factory.rs @@ -1093,12 +1093,9 @@ impl PoolChannelFactory { let referenced_job = self.negotiated_jobs.get(&m.channel_id).unwrap(); let merkle_path = referenced_job.merkle_path.to_vec(); let pool_signature = self.pool_signature.clone(); - let extended_job = job_creator::extended_job_from_custom_job( - referenced_job, - pool_signature, - 32, - ) - .unwrap(); + let extended_job = + job_creator::extended_job_from_custom_job(referenced_job, pool_signature, 32) + .unwrap(); let prev_blockhash = crate::utils::u256_to_block_hash(referenced_job.prev_hash.clone()); let bits = referenced_job.nbits; self.inner.check_target( diff --git a/protocols/v2/roles-logic-sv2/src/job_creator.rs b/protocols/v2/roles-logic-sv2/src/job_creator.rs index 8e884567c..db6e01e16 100644 --- a/protocols/v2/roles-logic-sv2/src/job_creator.rs +++ b/protocols/v2/roles-logic-sv2/src/job_creator.rs @@ -140,7 +140,8 @@ pub fn extended_job_from_custom_job( pool_signature: String, extranonce_len: u8, ) -> Result, Error> { - let mut outputs = tx_outputs_to_costum_scripts(referenced_job.coinbase_tx_outputs.clone().as_ref()); + let mut outputs = + tx_outputs_to_costum_scripts(referenced_job.coinbase_tx_outputs.clone().as_ref()); let mut template = NewTemplate { template_id: 0, future_template: false,