@@ -24,7 +24,7 @@ use std::sync::Arc;
2424use std:: sync:: atomic:: AtomicUsize ;
2525use std:: sync:: atomic:: Ordering ;
2626
27- const TEST_THRESHOLD_BASIS_POINTS : u16 = 3333 ;
27+ const TEST_THRESHOLD_IN_BASIS_POINTS : u16 = 3333 ;
2828/// Use 0 for weight_reduction_allowed_delta in tests to disable weight reduction.
2929const TEST_WEIGHT_REDUCTION_ALLOWED_DELTA : u16 = 0 ;
3030/// Use 1 for test_weight_divisor in unit tests (they already use small weights).
@@ -288,7 +288,7 @@ impl TestSetup {
288288 self . encryption_keys [ validator_index] . clone ( ) ,
289289 self . signing_keys [ validator_index] . clone ( ) ,
290290 store,
291- TEST_THRESHOLD_BASIS_POINTS ,
291+ TEST_THRESHOLD_IN_BASIS_POINTS ,
292292 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
293293 TEST_CHAIN_ID ,
294294 None ,
@@ -902,7 +902,7 @@ fn test_mpc_manager_new_from_committee_set() {
902902 encryption_key,
903903 signing_key,
904904 Box :: new ( MockPublicMessagesStore ) ,
905- TEST_THRESHOLD_BASIS_POINTS ,
905+ TEST_THRESHOLD_IN_BASIS_POINTS ,
906906 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
907907 TEST_CHAIN_ID ,
908908 None ,
@@ -966,7 +966,7 @@ fn test_mpc_manager_new_fails_if_no_committee_for_epoch() {
966966 encryption_keys[ 0 ] . clone ( ) ,
967967 signing_keys[ 0 ] . clone ( ) ,
968968 Box :: new ( MockPublicMessagesStore ) ,
969- TEST_THRESHOLD_BASIS_POINTS ,
969+ TEST_THRESHOLD_IN_BASIS_POINTS ,
970970 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
971971 "test" ,
972972 None ,
@@ -4959,7 +4959,7 @@ impl RotationTestSetup {
49594959 let committee = self . setup . committee ( ) ;
49604960 let ( nodes, threshold) = build_reduced_nodes (
49614961 committee,
4962- TEST_THRESHOLD_BASIS_POINTS ,
4962+ TEST_THRESHOLD_IN_BASIS_POINTS ,
49634963 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
49644964 TEST_WEIGHT_DIVISOR ,
49654965 )
@@ -4985,7 +4985,7 @@ impl RotationTestSetup {
49854985 if let Some ( ref prev) = previous_committee {
49864986 let ( nodes, threshold) = build_reduced_nodes (
49874987 prev,
4988- TEST_THRESHOLD_BASIS_POINTS ,
4988+ TEST_THRESHOLD_IN_BASIS_POINTS ,
49894989 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
49904990 TEST_WEIGHT_DIVISOR ,
49914991 )
@@ -6133,7 +6133,7 @@ async fn test_prepare_previous_output_for_new_member() {
61336133 new_member_encryption_key,
61346134 new_member_signing_key,
61356135 Box :: new ( InMemoryPublicMessagesStore :: new ( ) ) ,
6136- TEST_THRESHOLD_BASIS_POINTS ,
6136+ TEST_THRESHOLD_IN_BASIS_POINTS ,
61376137 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
61386138 TEST_CHAIN_ID ,
61396139 None ,
@@ -7274,7 +7274,7 @@ fn test_reconstruct_from_dkg_certificates_with_shifted_party_ids() {
72747274 rotation_setup. setup . encryption_keys [ shifted_member_index] . clone ( ) ,
72757275 rotation_setup. setup . signing_keys [ shifted_member_index] . clone ( ) ,
72767276 Box :: new ( store) ,
7277- TEST_THRESHOLD_BASIS_POINTS ,
7277+ TEST_THRESHOLD_IN_BASIS_POINTS ,
72787278 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
72797279 TEST_CHAIN_ID ,
72807280 None ,
@@ -7437,7 +7437,7 @@ fn test_reconstruct_from_dkg_certificates_stops_at_threshold() {
74377437 setup. encryption_keys [ target_index] . clone ( ) ,
74387438 setup. signing_keys [ target_index] . clone ( ) ,
74397439 Box :: new ( store) ,
7440- TEST_THRESHOLD_BASIS_POINTS ,
7440+ TEST_THRESHOLD_IN_BASIS_POINTS ,
74417441 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
74427442 TEST_CHAIN_ID ,
74437443 None ,
@@ -7518,7 +7518,7 @@ fn test_reconstruct_from_rotation_certificates_with_shifted_party_ids() {
75187518 rotation_setup. setup . encryption_keys [ dealer_idx] . clone ( ) ,
75197519 rotation_setup. setup . signing_keys [ dealer_idx] . clone ( ) ,
75207520 Box :: new ( InMemoryPublicMessagesStore :: new ( ) ) ,
7521- TEST_THRESHOLD_BASIS_POINTS ,
7521+ TEST_THRESHOLD_IN_BASIS_POINTS ,
75227522 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
75237523 TEST_CHAIN_ID ,
75247524 None ,
@@ -7550,7 +7550,7 @@ fn test_reconstruct_from_rotation_certificates_with_shifted_party_ids() {
75507550 rotation_setup. setup . encryption_keys [ other_idx] . clone ( ) ,
75517551 rotation_setup. setup . signing_keys [ other_idx] . clone ( ) ,
75527552 Box :: new ( InMemoryPublicMessagesStore :: new ( ) ) ,
7553- TEST_THRESHOLD_BASIS_POINTS ,
7553+ TEST_THRESHOLD_IN_BASIS_POINTS ,
75547554 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
75557555 TEST_CHAIN_ID ,
75567556 None ,
@@ -7638,7 +7638,7 @@ fn test_reconstruct_from_rotation_certificates_with_shifted_party_ids() {
76387638 rotation_setup. setup . encryption_keys [ shifted_member_index] . clone ( ) ,
76397639 rotation_setup. setup . signing_keys [ shifted_member_index] . clone ( ) ,
76407640 Box :: new ( store) ,
7641- TEST_THRESHOLD_BASIS_POINTS ,
7641+ TEST_THRESHOLD_IN_BASIS_POINTS ,
76427642 TEST_WEIGHT_REDUCTION_ALLOWED_DELTA ,
76437643 TEST_CHAIN_ID ,
76447644 None ,
0 commit comments