Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Aug 1, 2024
1 parent 4ace164 commit 0fdb38e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion crates/threshold-signature-server/src/validator/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ pub async fn new_reshare(
.any(|validator_info| validator_info.tss_account == *signer.account_id());

if !is_proper_signer {
dbg!("not proper");
return Ok(StatusCode::MISDIRECTED_REQUEST);
}
// get old key if have it
Expand Down
3 changes: 1 addition & 2 deletions pallets/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub mod pallet {
pub threshold_servers: Vec<ThresholdServersConfig<T>>,
/// validator info and accounts to take part in proactive refresh
pub proactive_refresh_data: (Vec<ValidatorInfo>, Vec<Vec<u8>>),
/// validator info and account to take part in a reshare
/// validator info and account new signer to take part in a reshare
pub mock_signer_rotate: (bool, Vec<T::ValidatorId>, Vec<T::ValidatorId>),
}

Expand Down Expand Up @@ -245,7 +245,6 @@ pub mod pallet {
ReshareData::<T>::put(ReshareInfo {
// To give enough time for test_reshare setup
block_number: TEST_RESHARE_BLOCK_NUMBER.into(),
// Alice signer public key
new_signer: self.mock_signer_rotate.clone().2[0].encode(),
})
}
Expand Down

0 comments on commit 0fdb38e

Please sign in to comment.