Skip to content

Commit

Permalink
Fix mining loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailK committed Jul 4, 2024
1 parent 5ea548d commit 0811e4b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nodes/poscan-consensus/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,7 @@ pub fn new_full(

let hist_hash = calc_hist(client.clone(), &rotation_hash, &parent_id);

let rndx = randomx(hashes[0].0.as_slice());
if let Err(e) = rndx {
error!(">>> {}", e);
break
}
let obj_hash = rndx.unwrap();
let dh = DoubleHash { pre_hash: metadata.pre_hash, obj_hash };
let dh = DoubleHash { pre_hash: metadata.pre_hash, obj_hash: hashes[0] };
let rndx = dh.calc_hash_randomx();
if let Err(e) = rndx {
error!(">>> {}", e);
Expand Down

0 comments on commit 0811e4b

Please sign in to comment.