From 49833736e7d722d437c12ef4a6985213eaafd152 Mon Sep 17 00:00:00 2001 From: JSKitty Date: Wed, 26 Oct 2022 11:35:22 +0100 Subject: [PATCH] Handle sensitivity at post-arg stage --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c9746ef..b7867eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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; } @@ -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 {