Skip to content

Commit

Permalink
remove creation of unused file ranges.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
albertobsd committed Mar 8, 2021
1 parent 8c6eb83 commit f4e9d4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion keyhunt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1394,7 +1394,7 @@ void *thread_process(void *vargp) {
char *eth_address;
char *public_address_compressed,*public_address_uncompressed;
unsigned long longtemp;
FILE *keys,*range_file,*vanityKeys;
FILE *keys,*vanityKeys;
mpz_t random_key_mpz,mpz_bit_range_min,mpz_bit_range_max,mpz_bit_range_diff;
mpz_init(random_key_mpz);
mpz_init(R.x);
Expand Down Expand Up @@ -1432,11 +1432,13 @@ void *thread_process(void *vargp) {
gmp_sprintf(hextemp,"%0.64Zx",random_key_mpz);
pthread_mutex_lock(&write_range);
printf("Thread %i : Setting up base key: %s\n",thread_number,hextemp);
/*
range_file = fopen("./ranges.txt","a+");
if(range_file != NULL) {
fprintf(range_file,"%s\n",hextemp);
fclose(range_file);
}
*/
pthread_mutex_unlock(&write_range);
free(hextemp);
Scalar_Multiplication(G, &R, random_key_mpz);
Expand Down Expand Up @@ -1632,11 +1634,13 @@ void *thread_process_range(void *vargp) {
}
printf("Thread %i : Setting up base key: %s\n",thread_number,tt->rs);
pthread_mutex_lock(&write_range);
/*
range_file = fopen("./ranges.txt","a+");
if(range_file != NULL) {
fprintf(range_file,"%s\n",tt->rs);
fclose(range_file);
}
*/
pthread_mutex_unlock(&write_range);
free(tt->rs);
free(tt->rpt);
Expand Down

0 comments on commit f4e9d4e

Please sign in to comment.