Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Aug 2, 2024
1 parent f7168d3 commit 6a8c96c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Binary file modified crates/client/entropy_metadata.scale
Binary file not shown.
4 changes: 2 additions & 2 deletions pallets/registry/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ benchmarks! {
jump_start_status: JumpStartStatus::InProgress(0),
confirmations: vec![validators[0].clone(), validators[0].clone()],
verifying_key: None,
parent_key_threhsold: 2
parent_key_threshold: 2
});


Expand Down Expand Up @@ -128,7 +128,7 @@ benchmarks! {
jump_start_status: JumpStartStatus::InProgress(0),
confirmations: vec![],
verifying_key: None,
parent_key_threhsold: 2
parent_key_threshold: 2
});


Expand Down
6 changes: 3 additions & 3 deletions pallets/registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub mod pallet {
let current_block_number = <frame_system::Pallet<T>>::block_number();
let converted_block_number: u32 =
BlockNumberFor::<T>::try_into(current_block_number).unwrap_or_default();
let parent_key_threhsold = pallet_parameters::Pallet::<T>::signers_info().threshold;
let parent_key_threshold = pallet_parameters::Pallet::<T>::signers_info().threshold;
// make sure jumpstart is ready, or in progress but X amount of time has passed
match JumpStartProgress::<T>::get().jump_start_status {
JumpStartStatus::Ready => (),
Expand All @@ -277,7 +277,7 @@ pub mod pallet {
jump_start_status: JumpStartStatus::InProgress(converted_block_number),
confirmations: vec![],
verifying_key: None,
parent_key_threhsold,
parent_key_threshold,
});
Self::deposit_event(Event::StartedNetworkJumpStart());
Ok(())
Expand Down Expand Up @@ -336,7 +336,7 @@ pub mod pallet {
jump_start_status: JumpStartStatus::Done,
confirmations: vec![],
verifying_key: jump_start_info.verifying_key,
parent_key_threhsold: jump_start_info.parent_key_threhsold,
parent_key_threshold: jump_start_info.parent_key_threshold,
});
// Jumpstart participants become first network signers
pallet_staking_extension::Signers::<T>::put(jump_start_info.confirmations);
Expand Down
10 changes: 5 additions & 5 deletions pallets/registry/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ fn it_jumps_the_network() {
jump_start_status: JumpStartStatus::Ready,
confirmations: vec![],
verifying_key: None,
parent_key_threhsold: 0
parent_key_threshold: 0
},
"Checks default status of jump start detail"
);
Expand All @@ -113,7 +113,7 @@ fn it_jumps_the_network() {
jump_start_status: JumpStartStatus::InProgress(0),
confirmations: vec![],
verifying_key: None,
parent_key_threhsold: 2
parent_key_threshold: 2
},
"Checks that jump start is in progress"
);
Expand All @@ -132,7 +132,7 @@ fn it_jumps_the_network() {
jump_start_status: JumpStartStatus::InProgress(100),
confirmations: vec![],
verifying_key: None,
parent_key_threhsold: 2
parent_key_threshold: 2
},
"ensures jump start is called again if too many blocks passed"
);
Expand Down Expand Up @@ -173,7 +173,7 @@ fn it_tests_jump_start_result() {
jump_start_status: JumpStartStatus::InProgress(0),
confirmations: vec![1],
verifying_key: Some(expected_verifying_key.clone()),
parent_key_threhsold: 2
parent_key_threshold: 2
},
"Jump start recieves a confirmation"
);
Expand Down Expand Up @@ -205,7 +205,7 @@ fn it_tests_jump_start_result() {
jump_start_status: JumpStartStatus::Done,
confirmations: vec![],
verifying_key: Some(expected_verifying_key),
parent_key_threhsold: 2
parent_key_threshold: 2
},
"Jump start in done status after all confirmations"
);
Expand Down
2 changes: 1 addition & 1 deletion pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ pub mod pallet {
};
ReshareData::<T>::put(reshare_info);
JumpStartProgress::<T>::mutate(|jump_start_details| {
jump_start_details.parent_key_threhsold =
jump_start_details.parent_key_threshold =
pallet_parameters::Pallet::<T>::signers_info().threshold;
});
Ok(())
Expand Down
4 changes: 2 additions & 2 deletions pallets/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ fn it_tests_new_session_handler() {
assert_eq!(Staking::next_signers(), None);
assert_eq!(Staking::reshare_data().block_number, 0, "Check reshare block start at zero");
assert_eq!(
Staking::jump_start_progress().parent_key_threhsold,
Staking::jump_start_progress().parent_key_threshold,
0,
"parent key threhsold start at zero"
);
Expand All @@ -359,7 +359,7 @@ fn it_tests_new_session_handler() {
"Check reshare next signer up is 1"
);
assert_eq!(
Staking::jump_start_progress().parent_key_threhsold,
Staking::jump_start_progress().parent_key_threshold,
2,
"parent key threhsold updated"
);
Expand Down

0 comments on commit 6a8c96c

Please sign in to comment.