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 README guidance
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelwatch committed Jun 5, 2021
1 parent 39c4e5d commit 57fc557
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A quick casual project I wrote to try out applying hash midstate caching on the cryptocurrency project [duino-coin](https://github.com/revoxhere/duino-coin). 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.

Aside from server bottlenecks, my i7-8550U averaged 22 to 25MH/s. In other words, it's probably the fastest DUCO-S1 miner around, barring GPUs. To try it out yourself, grab a release! There, you can find a pre-compiled Windows binary and instructions to compile for Linux below. When prompted about processess, 16 or 8 is recommended.
Aside from server bottlenecks, my i7-8550U averaged 22 to 25MH/s. In other words, it's probably the fastest DUCO-S1 miner around, barring GPUs. To try it out yourself, grab a release! There, you can find a pre-compiled Windows binary and instructions to compile for Linux below. When prompted about processess, use the number of CPU threads on your system or slightly more.

This program used to be written in Python with some C wrapped in Cython, but I have since rewritten it in pure C with native cross-platform compatibility.

Expand Down
4 changes: 2 additions & 2 deletions src/nonceMiner.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void* mining_routine(void* arg){
t0 = t1;

// Generates and sends result string
len = sprintf(buf, "%ld,%d,nonceMiner v1.4.0,%s\n", nonce, *local_hashrate, identifier);
len = sprintf(buf, "%ld,%d,nonceMiner v1.4.1,%s\n", nonce, *local_hashrate, identifier);
len = send(soc, buf, len, 0);
if(len == -1) goto on_error;

Expand Down Expand Up @@ -197,7 +197,7 @@ int main(){
int n_threads;
char *newline_ptr, *buf_ptr;

puts("Initializing nonceMiner v1.4.0...");
puts("Initializing nonceMiner v1.4.1...");

printf("Enter username: ");
buf_ptr = fgets(username, 127, stdin);
Expand Down

0 comments on commit 57fc557

Please sign in to comment.