@@ -5303,7 +5303,7 @@ fn test_do_commit_crv3_weights_success() {
53035303
53045304 let cur_epoch =
53055305 SubtensorModule :: get_epoch_index ( netuid, SubtensorModule :: get_current_block_as_u64 ( ) ) ;
5306- let commits = CRV3WeightCommitsV2 :: < Test > :: get ( netuid, cur_epoch) ;
5306+ let commits = TimelockedWeightCommits :: < Test > :: get ( netuid, cur_epoch) ;
53075307 assert_eq ! ( commits. len( ) , 1 ) ;
53085308 assert_eq ! ( commits[ 0 ] . 0 , hotkey) ;
53095309 assert_eq ! ( commits[ 0 ] . 2 , commit_data) ;
@@ -6158,7 +6158,7 @@ fn test_multiple_commits_by_same_hotkey_within_limit() {
61586158
61596159 let cur_epoch =
61606160 SubtensorModule :: get_epoch_index ( netuid, SubtensorModule :: get_current_block_as_u64 ( ) ) ;
6161- let commits = CRV3WeightCommitsV2 :: < Test > :: get ( netuid, cur_epoch) ;
6161+ let commits = TimelockedWeightCommits :: < Test > :: get ( netuid, cur_epoch) ;
61626162 assert_eq ! (
61636163 commits. len( ) ,
61646164 10 ,
@@ -6192,7 +6192,7 @@ fn test_reveal_crv3_commits_removes_past_epoch_commits() {
61926192 for & epoch in & [ past_epoch, reveal_epoch] {
61936193 let bounded_commit = vec ! [ epoch as u8 ; 5 ] . try_into ( ) . expect ( "bounded vec" ) ;
61946194
6195- assert_ok ! ( CRV3WeightCommitsV2 :: <Test >:: try_mutate(
6195+ assert_ok ! ( TimelockedWeightCommits :: <Test >:: try_mutate(
61966196 netuid,
61976197 epoch,
61986198 |q| -> DispatchResult {
@@ -6203,8 +6203,8 @@ fn test_reveal_crv3_commits_removes_past_epoch_commits() {
62036203 }
62046204
62056205 // Sanity – both epochs presently hold a commit.
6206- assert ! ( !CRV3WeightCommitsV2 :: <Test >:: get( netuid, past_epoch) . is_empty( ) ) ;
6207- assert ! ( !CRV3WeightCommitsV2 :: <Test >:: get( netuid, reveal_epoch) . is_empty( ) ) ;
6206+ assert ! ( !TimelockedWeightCommits :: <Test >:: get( netuid, past_epoch) . is_empty( ) ) ;
6207+ assert ! ( !TimelockedWeightCommits :: <Test >:: get( netuid, reveal_epoch) . is_empty( ) ) ;
62086208
62096209 // ---------------------------------------------------------------------
62106210 // Run the reveal pass WITHOUT a pulse – only expiry housekeeping runs.
@@ -6213,13 +6213,13 @@ fn test_reveal_crv3_commits_removes_past_epoch_commits() {
62136213
62146214 // past_epoch (< reveal_epoch) must be gone
62156215 assert ! (
6216- CRV3WeightCommitsV2 :: <Test >:: get( netuid, past_epoch) . is_empty( ) ,
6216+ TimelockedWeightCommits :: <Test >:: get( netuid, past_epoch) . is_empty( ) ,
62176217 "expired epoch {past_epoch} should be cleared"
62186218 ) ;
62196219
62206220 // reveal_epoch queue is *kept* because its commit could still be revealed later.
62216221 assert ! (
6222- !CRV3WeightCommitsV2 :: <Test >:: get( netuid, reveal_epoch) . is_empty( ) ,
6222+ !TimelockedWeightCommits :: <Test >:: get( netuid, reveal_epoch) . is_empty( ) ,
62236223 "reveal-epoch {reveal_epoch} must be retained until commit can be revealed"
62246224 ) ;
62256225 } ) ;
@@ -6895,7 +6895,7 @@ fn test_reveal_crv3_commits_retry_on_missing_pulse() {
68956895 ) ) ;
68966896
68976897 // epoch in which commit was stored
6898- let stored_epoch = CRV3WeightCommitsV2 :: < Test > :: iter_prefix ( netuid)
6898+ let stored_epoch = TimelockedWeightCommits :: < Test > :: iter_prefix ( netuid)
68996899 . next ( )
69006900 . map ( |( e, _) | e)
69016901 . expect ( "commit stored" ) ;
@@ -6909,7 +6909,7 @@ fn test_reveal_crv3_commits_retry_on_missing_pulse() {
69096909 // run *one* block inside reveal epoch without pulse → commit should stay queued
69106910 step_block ( 1 ) ;
69116911 assert ! (
6912- !CRV3WeightCommitsV2 :: <Test >:: get( netuid, stored_epoch) . is_empty( ) ,
6912+ !TimelockedWeightCommits :: <Test >:: get( netuid, stored_epoch) . is_empty( ) ,
69136913 "commit must remain queued when pulse is missing"
69146914 ) ;
69156915
@@ -6937,7 +6937,7 @@ fn test_reveal_crv3_commits_retry_on_missing_pulse() {
69376937 assert ! ( !weights. is_empty( ) , "weights must be set after pulse" ) ;
69386938
69396939 assert ! (
6940- CRV3WeightCommitsV2 :: <Test >:: get( netuid, stored_epoch) . is_empty( ) ,
6940+ TimelockedWeightCommits :: <Test >:: get( netuid, stored_epoch) . is_empty( ) ,
69416941 "queue should be empty after successful reveal"
69426942 ) ;
69436943 } ) ;
@@ -7080,7 +7080,7 @@ fn test_reveal_crv3_commits_legacy_payload_success() {
70807080
70817081 // commit should be gone
70827082 assert ! (
7083- CRV3WeightCommitsV2 :: <Test >:: get( netuid, commit_epoch) . is_empty( ) ,
7083+ TimelockedWeightCommits :: <Test >:: get( netuid, commit_epoch) . is_empty( ) ,
70847084 "commit storage should be cleaned after reveal"
70857085 ) ;
70867086 } ) ;
0 commit comments