Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Bump version and update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelwatch committed Aug 7, 2021
1 parent c26a63f commit 5956308
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ A casual project about running the DUCO-S1 algorithm, from revoxhere's [duino-co

Not familiar with hash midstate caching? The idea is to cache the SHA-1 algorithm's state after it processes the prefix (creating the midstate) then to finish the hash with the guessed nonces repeatedly, but while reusing the midstate, until the right nonce is found. This saves a lot of calculation, and it's already being used in Bitcoin mining.

My laptop has a maximum CPU+GPU performance of 33.8 + 85.12 = 118.92 MH/s (Intel i7-8550U + UHD Graphics 630) when running `benchmark.exe`. After network / master server delays and power throttling, the online performance is about 50 MH/s. In other words, it's the fastest open-source DUCO-S1 miner around. Here are some other maximum figures as July 25, 2021:
My laptop (Intel i7-8550U + UHD Graphics 630) averages about 60 MH/s. In other words, it's the fastest open-source DUCO-S1 miner around. Here are some other figures as July 25, 2021:

* Nvidia RTX 3070: 1.79 GH/s
* Nvidia GTX 1060 6GB: 612 MH/s
* Nvidia RTX 3070: 1.65 GH/s
* Nvidia GTX 1060 6GB: 684 MH/s
* Nvidia GTX 770: 343 MH/s
* Ryzen 5 3600: 106 MH/s
* Raspberry Pi 3B (CPU only): 4 MH/s
Expand Down Expand Up @@ -45,7 +45,7 @@ Prerequisites: `gcc` (MinGW on Windows), `libssl-dev` (at least a development Op
1) Call `make nonceMiner` in the repo directory
* To compile without OpenCL, call `make nonceMiner CFLAGS='-O3 -Wall -D NO_OPENCL'` in the repo directory
2) Navigate to the bin folder with `cd bin`
3) Execute `./nonceMiner -u <your username here>`, or pull the compiled binary AND the OpenCL sources from `bin` (if compiled with OpenCL)
3) Execute `./nonceMiner -u <your username here> -o <node URL here>`, or pull the compiled binary AND the OpenCL sources from `bin` (if compiled with OpenCL)

Additionally, the following test programs are available:
* `benchmark` - Evaluate DUCO-S1 and xxhash performance on your machine
Expand Down
10 changes: 5 additions & 5 deletions src/nonceMiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ char server_address[256] = ""; // Default is empty string, but must be configure
char server_port[16] = "";
char username[128];
char identifier[128] = ""; // Default value should be empty string
char program_name[64] = "nonceMiner v2.1.2"; // Can be overrided with -n option
char program_name[64] = "nonceMiner v2.2.0"; // Can be overrided with -n option

// Prints log as formatted along with timestamp, newline, and four-letter code
void print_formatted_log(const char* code, const char* format, ...){
Expand All @@ -146,9 +146,9 @@ void print_formatted_log(const char* code, const char* format, ...){
}

void print_help(){
puts("nonceMiner v2.1.2 by colonelwatch");
puts("A miner applying hash midstate caching and other optimzations to the duinocoin project");
puts("Typical usage: nonceMiner -u <your username here> [OPTIONS]");
puts("nonceMiner v2.2.0 by colonelwatch");
puts("A miner about running the DUCO-S1 algorithm as damn fast as possible");
puts("Typical usage: ./nonceMiner -u <your username here> -o <node URL here> [OPTIONS]");
puts("Options:");
puts(" -h Print the help message");
puts(" -a Specify the hash algorithm {DUCO_S1, xxhash}");
Expand Down Expand Up @@ -472,7 +472,7 @@ int main(int argc, char **argv){
else
job_request_len = sprintf(job_request, "JOB,%s,%s\n", username, diff_string);

printf("Initializing nonceMiner v2.1.2...\n");
printf("Initializing nonceMiner v2.2.0...\n");
printf("Configured with username '%s', ", username);
printf("identifier '%s', ", identifier);
printf("difficulty '%s', ", diff_string);
Expand Down

0 comments on commit 5956308

Please sign in to comment.