Browse Source

Merge pull request #65 from majorpakhom/fix/vanity-and-gitignore

Update .gitignore and fix issues with check_prefix in vanitygen
pull/66/head
orignal 4 years ago committed by GitHub
parent
commit
89e569e54e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 2
      vanitygen.cpp

1
.gitignore vendored

@ -11,6 +11,7 @@ keyinfo
famtool famtool
i2pbase64 i2pbase64
regaddr regaddr
regaddralias
routerinfo routerinfo
vain vain
b33address b33address

2
vanitygen.cpp

@ -73,7 +73,7 @@ static bool check_prefix(const char * buf)
unsigned short size_str=0; unsigned short size_str=0;
while(*buf) while(*buf)
{ {
if(*buf < 48 || (*buf > 57 && *buf < 65) || (*buf > 64 && *buf < 94) || *buf > 125 || size_str > 52) if(!((*buf > 49 && *buf < 56) || (*buf > 96 && *buf < 123)) || size_str > 52)
return false; return false;
size_str++; size_str++;
buf++; buf++;

Loading…
Cancel
Save