@@ -2025,7 +2025,7 @@ fn test_freeze_window_blocks_root_and_owner() {
20252025 let owner: U256 = U256 :: from ( 9 ) ;
20262026 SubnetOwner :: < Test > :: insert ( netuid, owner) ;
20272027 assert_noop ! (
2028- AdminUtils :: sudo_set_kappa (
2028+ AdminUtils :: sudo_set_commit_reveal_weights_interval (
20292029 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
20302030 netuid,
20312031 77
@@ -2112,14 +2112,14 @@ fn test_owner_hyperparam_update_rate_limit_enforced() {
21122112 ) ) ;
21132113
21142114 // First update succeeds
2115- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2115+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
21162116 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21172117 netuid,
21182118 11
21192119 ) ) ;
21202120 // Immediate second update fails due to TxRateLimitExceeded
21212121 assert_noop ! (
2122- AdminUtils :: sudo_set_kappa (
2122+ AdminUtils :: sudo_set_commit_reveal_weights_interval (
21232123 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21242124 netuid,
21252125 12
@@ -2130,7 +2130,7 @@ fn test_owner_hyperparam_update_rate_limit_enforced() {
21302130 // Advance less than limit still fails
21312131 run_to_block ( SubtensorModule :: get_current_block_as_u64 ( ) + 1 ) ;
21322132 assert_noop ! (
2133- AdminUtils :: sudo_set_kappa (
2133+ AdminUtils :: sudo_set_commit_reveal_weights_interval (
21342134 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21352135 netuid,
21362136 13
@@ -2140,7 +2140,7 @@ fn test_owner_hyperparam_update_rate_limit_enforced() {
21402140
21412141 // Advance one more block to pass the limit; should succeed
21422142 run_to_block ( SubtensorModule :: get_current_block_as_u64 ( ) + 1 ) ;
2143- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2143+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
21442144 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21452145 netuid,
21462146 14
@@ -2167,21 +2167,25 @@ fn test_hyperparam_rate_limit_enforced_by_tempo() {
21672167 ) ) ;
21682168
21692169 // First owner update should succeed
2170- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2170+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
21712171 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21722172 netuid,
21732173 1
21742174 ) ) ;
21752175
21762176 // Immediate second update should fail due to tempo-based RL
21772177 assert_noop ! (
2178- AdminUtils :: sudo_set_kappa( <<Test as Config >:: RuntimeOrigin >:: signed( owner) , netuid, 2 ) ,
2178+ AdminUtils :: sudo_set_commit_reveal_weights_interval(
2179+ <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
2180+ netuid,
2181+ 2
2182+ ) ,
21792183 SubtensorError :: <Test >:: TxRateLimitExceeded
21802184 ) ;
21812185
21822186 // Advance 2 blocks (2 tempos with tempo=1) then succeed
21832187 run_to_block ( SubtensorModule :: get_current_block_as_u64 ( ) + 2 ) ;
2184- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2188+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
21852189 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
21862190 netuid,
21872191 3
@@ -2211,15 +2215,15 @@ fn test_owner_hyperparam_rate_limit_independent_per_param() {
22112215 ) ) ;
22122216
22132217 // First update to kappa should succeed
2214- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2218+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
22152219 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
22162220 netuid,
22172221 10
22182222 ) ) ;
22192223
22202224 // Immediate second update to the SAME param (kappa) should be blocked by RL
22212225 assert_noop ! (
2222- AdminUtils :: sudo_set_kappa (
2226+ AdminUtils :: sudo_set_commit_reveal_weights_interval (
22232227 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
22242228 netuid,
22252229 11
@@ -2236,7 +2240,7 @@ fn test_owner_hyperparam_rate_limit_independent_per_param() {
22362240
22372241 // kappa should still be blocked until its own RL window passes
22382242 assert_noop ! (
2239- AdminUtils :: sudo_set_kappa (
2243+ AdminUtils :: sudo_set_commit_reveal_weights_interval (
22402244 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
22412245 netuid,
22422246 12
@@ -2254,7 +2258,7 @@ fn test_owner_hyperparam_rate_limit_independent_per_param() {
22542258 run_to_block ( SubtensorModule :: get_current_block_as_u64 ( ) + 2 ) ;
22552259
22562260 // Now both hyperparameters can be updated again
2257- assert_ok ! ( AdminUtils :: sudo_set_kappa (
2261+ assert_ok ! ( AdminUtils :: sudo_set_commit_reveal_weights_interval (
22582262 <<Test as Config >:: RuntimeOrigin >:: signed( owner) ,
22592263 netuid,
22602264 13
0 commit comments