Skip to content

Commit

Permalink
cleanup extranous printlns (MystenLabs#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
punwai authored Jul 7, 2022
1 parent c8e09bb commit cd8704f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions crates/sui-core/src/unit_tests/authority_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,6 @@ pub async fn send_and_confirm_transaction(

// Collect signatures from a quorum of authorities
let committee = authority.committee.load();
println!("{:?}", committee.voting_rights);
println!("{:?}", committee.index_map);
println!("{:?}", vote.auth_sign_info.authority);
let mut builder = SignatureAggregator::try_new(transaction, &committee).unwrap();
let certificate = builder
.append(vote.auth_sign_info.authority, vote.auth_sign_info.signature)
Expand Down Expand Up @@ -525,7 +522,6 @@ async fn test_publish_dependent_module_ok() {
bytes
};
let authority = init_state_with_objects(vec![gas_payment_object]).await;
println!("{:?}", authority.committee.load().index_map);

let data = TransactionData::new_module(
sender,
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-types/src/committee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct Committee {
#[serde(skip)]
expanded_keys: HashMap<AuthorityName, PublicKey>,
#[serde(skip)]
pub index_map: HashMap<AuthorityName, usize>,
index_map: HashMap<AuthorityName, usize>,
#[serde(skip)]
loaded: bool,
}
Expand Down
1 change: 0 additions & 1 deletion crates/sui-types/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ impl<const STRONG_THRESHOLD: bool> AuthorityQuorumSignInfo<STRONG_THRESHOLD> {
pk: PublicKeyBytes,
committee: &Committee,
) -> SuiResult<()> {
println!("{:?}", committee.index_map);
let index = committee
.authority_index(&pk)
.ok_or(SuiError::UnknownSigner)? as u32;
Expand Down

0 comments on commit cd8704f

Please sign in to comment.