Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Oct 16, 2024
1 parent 97f54a9 commit 0e8c7b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/threshold-signature-server/src/validator/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub async fn new_reshare(
.ok_or_else(|| ValidatorErr::KvDeserialize("Failed to load KeyShare".into()))?;
Some(OldHolder { key_share: key_share.0 })
};

// new_holders -> From chain next_signers (old_holders (currently forced to be t) + new_holders)
// also acts as verifiers as is everyone in the party
let new_holders: BTreeSet<PartyId> =
Expand All @@ -126,7 +126,7 @@ pub async fn new_reshare(
&prune_old_holders(&api, &rpc, data.new_signers, validators_info.clone()).await?;
let old_holders: BTreeSet<PartyId> =
old_holders.iter().map(|x| PartyId::new(x.tss_account.clone())).collect();

let new_holder = NewHolder {
verifying_key: decoded_verifying_key,
old_threshold: parent_key_details.parent_key_threshold as usize,
Expand Down
2 changes: 1 addition & 1 deletion pallets/attestation/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
(5, (0, NULL_ARR, vec![20], pck_encoded.to_vec().try_into().unwrap())),
],
proactive_refresh_data: (vec![], vec![]),
mock_signer_rotate: (false, vec![]),
mock_signer_rotate: (false, vec![], vec![]),
};
pallet_staking_extension.assimilate_storage(&mut t).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion pallets/propagation/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn knows_how_to_mock_several_http_calls() {
Propagation::post_reshare(7).unwrap();
pallet_staking_extension::ReshareData::<Test>::put(ReshareInfo {
block_number: 7,
new_signer: 1u64.encode(),
new_signers: vec![1u64.encode()],
});
// now triggers
Propagation::post_reshare(7).unwrap();
Expand Down

0 comments on commit 0e8c7b4

Please sign in to comment.