From 296f78cafbd0d27d631e39b64771f0a4a2d59e38 Mon Sep 17 00:00:00 2001 From: Matthew Howard Date: Mon, 5 Aug 2024 16:03:35 +0100 Subject: [PATCH] use named flags for case definitions --- crates/chia-consensus/src/spendbundle_validation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/chia-consensus/src/spendbundle_validation.rs b/crates/chia-consensus/src/spendbundle_validation.rs index a5343e9a6..5569043be 100644 --- a/crates/chia-consensus/src/spendbundle_validation.rs +++ b/crates/chia-consensus/src/spendbundle_validation.rs @@ -42,9 +42,9 @@ mod tests { #[rstest] #[case(0, 0)] - #[case(TEST_CONSTANTS.hard_fork_height, 33_554_592)] - #[case(TEST_CONSTANTS.soft_fork4_height, 167_772_320)] - #[case(TEST_CONSTANTS.soft_fork5_height, 436_207_776)] + #[case(TEST_CONSTANTS.hard_fork_height, 0 | ENABLE_BLS_OPS_OUTSIDE_GUARD | ENABLE_FIXED_DIV | ALLOW_BACKREFS)] + #[case(TEST_CONSTANTS.soft_fork4_height, 0 | ENABLE_BLS_OPS_OUTSIDE_GUARD | ENABLE_FIXED_DIV | ALLOW_BACKREFS | ENABLE_MESSAGE_CONDITIONS)] + #[case(TEST_CONSTANTS.soft_fork5_height, 0 | ENABLE_BLS_OPS_OUTSIDE_GUARD | ENABLE_FIXED_DIV | ALLOW_BACKREFS | ENABLE_MESSAGE_CONDITIONS | DISALLOW_INFINITY_G1)] fn test_get_flags(#[case] height: u32, #[case] expected_value: u32) { assert_eq!( get_flags_for_height_and_constants(height, &TEST_CONSTANTS),