Skip to content

Commit

Permalink
Merge pull request #8 from colindean/patch-2
Browse files Browse the repository at this point in the history
Add Litecoin support to oclvanitygen
  • Loading branch information
BlinkyStitt committed Feb 2, 2014
2 parents 942dd77 + 5a1c8be commit 68c7edd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion oclvanitygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ usage(const char *name)
"-i Case-insensitive prefix search\n"
"-k Keep pattern and continue search after finding a match\n"
"-1 Stop after first match\n"
"-L Generate litecoin address\n"
"-N Generate namecoin address\n"
"-T Generate bitcoin testnet address\n"
"-X <version> Generate address with the given version\n"
Expand Down Expand Up @@ -126,7 +127,7 @@ main(int argc, char **argv)
int i;

while ((opt = getopt(argc, argv,
"vqik1NTX:F:eE:p:P:d:w:t:g:b:VSh?f:o:s:D:")) != -1) {
"vqik1LNTX:F:eE:p:P:d:w:t:g:b:VSh?f:o:s:D:")) != -1) {
switch (opt) {
case 'v':
verbose = 2;
Expand All @@ -143,6 +144,10 @@ main(int argc, char **argv)
case '1':
only_one = 1;
break;
case 'L':
addrtype = 48;
privtype = 176;
break;
case 'N':
addrtype = 52;
privtype = 180;
Expand Down

0 comments on commit 68c7edd

Please sign in to comment.