Skip to content

Commit

Permalink
feat(audit checks): audit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
cong-or committed Oct 5, 2023
1 parent 9af8c08 commit 2b92719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audit/src/lib/find.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub fn find_vote(jormungandr_database: &Path, voting_key: String) -> Result<Vec<
pub fn all_voters(
jormungandr_database: &Path,
) -> Result<(HashSet<std::string::String>, HashSet<std::string::String>), Box<dyn error::Error>> {
let fragments = extract_fragments_from_storage(&jormungandr_database).unwrap();
let fragments = extract_fragments_from_storage(jormungandr_database).unwrap();

let mut unique_voters_ca = HashSet::new();
let mut unique_voters_0x = HashSet::new();
Expand Down Expand Up @@ -267,7 +267,7 @@ pub fn batch_key_check(

let voting_key = voting_key_61824_format.public_key().unwrap().to_string();

let votes = find_vote(&jormungandr_database, voting_key)?;
let votes = find_vote(jormungandr_database, voting_key)?;

flagged_keys.insert(key.clone(), votes.clone());

Expand Down

0 comments on commit 2b92719

Please sign in to comment.