Skip to content

Commit

Permalink
Last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DesWurstes committed Mar 4, 2018
1 parent b15d28b commit aefafe0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
@@ -1,12 +1,13 @@
LIBS=-lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -Wall
CFLAGS=-Wall
OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o cashaddr.o
PROGS=vanitygen keyconv oclvanitygen oclvanityminer
# OPTIMIZE
# -O0 = no optimization
# -O3 = good optimization
# -Ofast = aggressive optimization
# -Os = small file size
# -Og -g -ggdb debugging
CFLAGS+=-Ofast

PLATFORM=$(shell uname -s)
Expand Down
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@ Alphabet: `023456789acdefghjklmnpqrstuvwxyz`

- The first character should be `q`

- The second character should be either `q`, `p`, `z`, or `r`.
- The second character should be either `p`, `q`, `r`, or `z`.

## To build:

Expand Down Expand Up @@ -42,6 +42,8 @@ Windows

- Let Vanitygen search for both compressed and uncompressed addresses.

- Output in TSV and CSV formats

### TODOs:

- Allow to choose between compressed and uncompressed addresses
Expand Down
6 changes: 3 additions & 3 deletions pattern.c
Expand Up @@ -578,7 +578,7 @@ vg_output_match_console(vg_context_t *vcp, EC_KEY *pkey, const char *pattern, in
vg_encode_privkey(pkey, vcp->vc_privtype, privkey_buf);

if (vcp->vc_verbose > 0 || !vcp->vc_result_file || !vcp->vc_result_file_csv) {
printf("\r%79s\rPattern: \x1b[33m%s\x1b[0m\n", "", pattern);
printf("\r%79s\r\x1b[0mPattern: \x1b[33m%s\x1b[0m\n", "", pattern);
}

if (vcp->vc_verbose > 1) {
Expand Down Expand Up @@ -614,7 +614,7 @@ vg_output_match_console(vg_context_t *vcp, EC_KEY *pkey, const char *pattern, in
if (isscript)
fprintf(fp, "%s\t", addr2_buf);
else
fprintf(fp, "%s\n", addr_buf);
fprintf(fp, "%s\t", addr_buf);
fprintf(fp, "%s\n", privkey_buf);
fclose(fp);
}
Expand All @@ -630,7 +630,7 @@ vg_output_match_console(vg_context_t *vcp, EC_KEY *pkey, const char *pattern, in
if (isscript)
fprintf(fp, "%s,", addr2_buf);
else
fprintf(fp, "%s\n", addr_buf);
fprintf(fp, "%s,", addr_buf);
fprintf(fp, "%s\n", privkey_buf);
fclose(fp);
}
Expand Down

0 comments on commit aefafe0

Please sign in to comment.