diff --git a/src/audit/src/find/README.md b/src/audit/src/find/README.md index 14fb63a766..614a8f36be 100644 --- a/src/audit/src/find/README.md +++ b/src/audit/src/find/README.md @@ -42,4 +42,15 @@ VOTING_KEY='ca1q0uftf4873xazhmhqrrqg4kfx7fmzfqlm5w80wake5lu3fxjfjxpk6wv3f7' ./target/release/find --key-to-convert $VOTING_KEY -``` \ No newline at end of file +``` + +### Check a batch of keys +```bash + +KEY_FILE='/tmp/keyfile.txt' +FRAGMENTS_STORAGE=/tmp/fund9-leader-1/persist/leader-1 + +./target/release/find --fragments $FRAGMENTS_STORAGE --key-file $KEY_FILE + +``` + diff --git a/src/audit/src/find/bin/main.rs b/src/audit/src/find/bin/main.rs index 37fd9d9e0a..6f64243d4b 100644 --- a/src/audit/src/find/bin/main.rs +++ b/src/audit/src/find/bin/main.rs @@ -3,7 +3,7 @@ //! use clap::Parser; -use lib::find::{all_voters, batch_key_check, convert_key_formats, find_vote, read_lines}; +use lib::find::{all_voters, batch_key_check, convert_key_formats, find_vote}; use tracing::{info, Level}; use color_eyre::Result; @@ -132,8 +132,7 @@ fn main() -> Result<(), Box> { if let Some(keyfile) = args.key_file { let storage_path = PathBuf::from(args.fragments.expect("enforced by clap: infallible")); - - batch_key_check(&storage_path, keyfile); + batch_key_check(&storage_path, keyfile)?; } if let Some(voting_key) = args.key_to_convert {