Skip to content

Commit

Permalink
Handle sensitivity at post-arg stage
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Oct 26, 2022
1 parent ef9caca commit 4983373
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ fn main() {

// VanityGen Case Insensitivity: can be set to reduce the generation time via wider Base58 scope
if arg == "--case-insensitive" {
target = target.to_lowercase();
case_insensitive = true;
}

Expand All @@ -64,6 +63,11 @@ fn main() {
// Notify we're running multi-threaded
println!("Running at {} threads", threads);

// Enforce and cache our target's capitalisation
if case_insensitive {
target = target.to_lowercase();
}

// Spin up our key-gen threads
let (tx, rx) = mpsc::channel();
for _ in 0..threads {
Expand Down

0 comments on commit 4983373

Please sign in to comment.