commit dacb8e3b9cc243c88da193997450eee5b83fd1da
parent e7515ee5e8097454e1e512031f6680c54b2b20f0
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Thu, 2 Apr 2020 22:02:56 +1100
Fix min n to be equal to or greater than
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/niceBit.c b/niceBit.c
@@ -86,7 +86,7 @@ int check_vanity(char *pubaddress, int searchlen) {
/* For each vanity length
* ('len' digits in a row)
*/
- for(int len=10; len>searchlen; len--) {
+ for(int len=10; len>=searchlen; len--) {
/* For each digit 1-9 */
for(int i=0; i<10; i++) {
@@ -120,7 +120,7 @@ int main(int argc, char **argv) {
unsigned char seckey[32];
char pubaddress[40];
char *p = pubaddress;
- char *n = "3";
+ char *n = "4";
int searchlen;
int c;