Przeglądaj źródła

vanityaddr: Remove "util" feature from darkfi dependency.

parazyd 4 lat temu
rodzic
commit
33b732516b
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 1 1
      bin/vanityaddr/Cargo.toml
  2. 3 0
      bin/vanityaddr/src/main.rs

+ 1 - 1
bin/vanityaddr/Cargo.toml

@@ -12,7 +12,7 @@ edition = "2021"
 bs58 = "0.4.0"
 clap = {version = "3.1.6", features = ["derive"]}
 ctrlc = "3.2.0"
-darkfi = {path = "../../", features = ["crypto", "util"]}
+darkfi = {path = "../../", features = ["crypto"]}
 indicatif = "0.16.2"
 num_cpus = "1.13.1"
 rand = "0.8.5"

+ 3 - 0
bin/vanityaddr/src/main.rs

@@ -106,6 +106,9 @@ fn main() {
             .find_any(|address| address.starts_with_any(&args.prefix, args.case_sensitive))
             .expect("Failed to find an address match");
 
+        // The above will keep running until it finds a match or until the
+        // program terminates. Only if a match is found shall the following
+        // code be executed and the program exit successfully:
         let attempts = progress.position();
         progress.finish_and_clear();