Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
UnidenifiedUser committed Oct 5, 2023
1 parent 08ec2c0 commit 85b8859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion protocols/v2/roles-logic-sv2/src/job_creator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ pub fn extended_job_from_custom_job(
pool_signature: String,
extranonce_len: u8,
) -> Result<NewExtendedMiningJob<'static>, 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,
Expand Down

0 comments on commit 85b8859

Please sign in to comment.