Skip to content

Commit

Permalink
Fix failed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Jan 21, 2025
1 parent 9136fbc commit b8a6620
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/src/verify/tests/ckb_latest/features_since_v2021.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,17 @@ fn _check_typical_secp256k1_blake160_2_in_2_out_tx_with_chunk(step_cycles: Cycle

#[test]
fn check_typical_secp256k1_blake160_2_in_2_out_tx_with_chunk() {
let cycle_bound = if SCRIPT_VERSION >= ScriptVersion::V2 {
V2_CYCLE_BOUND
} else {
CYCLE_BOUND
};
if SCRIPT_VERSION >= ScriptVersion::V1 {
let mut rng = thread_rng();
let step_cycles1 = rng.sample(Uniform::from(1..100u64));
_check_typical_secp256k1_blake160_2_in_2_out_tx_with_chunk(step_cycles1);

let step_cycles2 = rng.sample(Uniform::from(100u64..TWO_IN_TWO_OUT_CYCLES - CYCLE_BOUND));
let step_cycles2 = rng.sample(Uniform::from(100u64..TWO_IN_TWO_OUT_CYCLES - cycle_bound));
_check_typical_secp256k1_blake160_2_in_2_out_tx_with_chunk(step_cycles2);
}
}
Expand Down

0 comments on commit b8a6620

Please sign in to comment.