You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in the p5_fork_choice module, the test appears to expect the header hash to be above the threshold:
it leads to an infinite loop since the condition hash(&header) > THRESHOLD continuously evaluates to false
fnbc_5_heaviest_chain(){println!("test");let g = Header::genesis();letmut i = 0;let h_a1 = loop{let header = g.child(hash(&[i]), i);println!("{}", hash(&header) > THRESHOLD);// Extrinsics root hash must be higher than threshold (less work done)ifhash(&header) > THRESHOLD{break header;}
i += 1;};}
Am I missing something here?
The text was updated successfully, but these errors were encountered:
Description:
In the
p4_batched_extrinsics
module, we generate a valid header using the following code snippet:It expects hash to be less than
THRESHOLD
However, in the
p5_fork_choice module
, the test appears to expect the header hash to be above the threshold:it leads to an infinite loop since the condition
hash(&header) > THRESHOLD
continuously evaluates to falseAm I missing something here?
The text was updated successfully, but these errors were encountered: