From 0811e4b300767e51f3671ff85367cbbce7cfa6d7 Mon Sep 17 00:00:00 2001 From: MikhailK Date: Thu, 4 Jul 2024 18:06:26 +0300 Subject: [PATCH] Fix mining loop --- nodes/poscan-consensus/src/service.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/nodes/poscan-consensus/src/service.rs b/nodes/poscan-consensus/src/service.rs index 00e5347b..c50cba18 100644 --- a/nodes/poscan-consensus/src/service.rs +++ b/nodes/poscan-consensus/src/service.rs @@ -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);