Skip to content

Commit

Permalink
vanilla algo (Blake256 8 rounds - double sha256)
Browse files Browse the repository at this point in the history
  • Loading branch information
xCoreDev authored and tpruvot committed Jan 27, 2016
1 parent a14fd15 commit 2712075
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Algorithms
*__skein__ (Skeincoin, Myriadcoin, Xedoscoin, ...)
*__skein2__ (Woodcoin)
*__s3__ (OneCoin)
*__vanilla__ (Blake-256 8-rounds - double sha256 [VNL])
*__x11__ (Darkcoin [DRK], Hirocoin, Limecoin, ...)
*__x13__ (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], ...)
*__x14__ (X14, Webcoin [WEB])
Expand Down
7 changes: 7 additions & 0 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ enum algos {
ALGO_SKEIN, /* Skein */
ALGO_SKEIN2, /* Double skein (Woodcoin) */
ALGO_S3, /* S3 */
ALGO_VANILLA, /* Vanilla (Blake256 8-rounds - double sha256) */
ALGO_X11, /* X11 */
ALGO_X13, /* X13 */
ALGO_X14, /* X14 */
Expand Down Expand Up @@ -148,6 +149,7 @@ static const char *algo_names[] = {
"skein",
"skein2",
"s3",
"vanilla",
"x11",
"x13",
"x14",
Expand Down Expand Up @@ -290,6 +292,7 @@ Options:\n\
skein Skein+Sha (Skeincoin)\n\
skein2 Double Skein (Woodcoin)\n\
s3 S3\n\
vanilla Vanilla (Blake 256 8-rounds - double sha256)\n\
x11 X11\n\
x13 X13\n\
x14 X14\n\
Expand Down Expand Up @@ -1961,6 +1964,7 @@ static void *miner_thread(void *userdata)
case ALGO_BLAKE2S:
case ALGO_SKEIN:
case ALGO_SKEIN2:
case ALGO_VANILLA:
max64 = 0x7ffffLL;
break;
default:
Expand Down Expand Up @@ -2080,6 +2084,9 @@ static void *miner_thread(void *userdata)
case ALGO_S3:
rc = scanhash_s3(thr_id, &work, max_nonce, &hashes_done);
break;
case ALGO_VANILLA:
rc = scanhash_blakecoin(thr_id, &work, max_nonce, &hashes_done);
break;
case ALGO_X11:
rc = scanhash_x11(thr_id, &work, max_nonce, &hashes_done);
break;
Expand Down

0 comments on commit 2712075

Please sign in to comment.