@@ -1378,11 +1378,11 @@ mod tests {
13781378 . current_committee ( )
13791379 . unwrap ( ) ;
13801380 assert_eq ! (
1381- epoch1_committee. threshold_basis_points ( ) ,
1381+ epoch1_committee. mpc_threshold_basis_points ( ) ,
13821382 DEFAULT_MPC_THRESHOLD_BASIS_POINTS
13831383 ) ;
13841384 assert_eq ! (
1385- epoch1_committee. allowed_delta ( ) ,
1385+ epoch1_committee. mpc_weight_reduction_allowed_delta ( ) ,
13861386 DEFAULT_MPC_WEIGHT_REDUCTION_ALLOWED_DELTA
13871387 ) ;
13881388
@@ -1397,7 +1397,7 @@ mod tests {
13971397 hashi_types:: move_types:: ConfigValue :: U64 ( new_threshold) ,
13981398 ) ,
13991399 (
1400- "mpc_allowed_delta " . into ( ) ,
1400+ "mpc_weight_reduction_allowed_delta " . into ( ) ,
14011401 hashi_types:: move_types:: ConfigValue :: U64 ( new_delta) ,
14021402 ) ,
14031403 ] ,
@@ -1444,25 +1444,25 @@ mod tests {
14441444 } ;
14451445 let epoch1 = committees. get ( & initial_epoch) . expect ( "epoch 1 committee" ) ;
14461446 assert_eq ! (
1447- epoch1. threshold_basis_points ( ) ,
1447+ epoch1. mpc_threshold_basis_points ( ) ,
14481448 DEFAULT_MPC_THRESHOLD_BASIS_POINTS ,
14491449 "epoch {initial_epoch} committee should retain original threshold_basis_points"
14501450 ) ;
14511451 assert_eq ! (
1452- epoch1. allowed_delta ( ) ,
1452+ epoch1. mpc_weight_reduction_allowed_delta ( ) ,
14531453 DEFAULT_MPC_WEIGHT_REDUCTION_ALLOWED_DELTA ,
14541454 "epoch {initial_epoch} committee should retain original allowed_delta"
14551455 ) ;
14561456
14571457 // Epoch 2 committee has new values.
14581458 let epoch2 = committees. get ( & target_epoch) . expect ( "epoch 2 committee" ) ;
14591459 assert_eq ! (
1460- epoch2. threshold_basis_points ( ) ,
1460+ epoch2. mpc_threshold_basis_points ( ) ,
14611461 new_threshold as u16 ,
14621462 "epoch {target_epoch} committee should have updated threshold_basis_points"
14631463 ) ;
14641464 assert_eq ! (
1465- epoch2. allowed_delta ( ) ,
1465+ epoch2. mpc_weight_reduction_allowed_delta ( ) ,
14661466 new_delta as u16 ,
14671467 "epoch {target_epoch} committee should have updated allowed_delta"
14681468 ) ;
0 commit comments