Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GOSTSec/ccminer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.5-gost
Choose a base ref
...
head repository: GOSTSec/ccminer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 16, 2018

  1. Copy the full SHA
    b71f85e View commit details

Commits on Feb 4, 2018

  1. x16r algo and new kernels

    Was a very long work but finally working,
    and unlike xevan these new kernels are reusable..
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    tpruvot committed Feb 4, 2018
    Copy the full SHA
    78dad7d View commit details

Commits on Mar 15, 2018

  1. Copy the full SHA
    d8a64d4 View commit details
  2. Copy the full SHA
    fd406f0 View commit details

Commits on Mar 26, 2018

  1. x12 algorithm (tpruvot#59)

    galaxycash authored and tpruvot committed Mar 26, 2018
    Copy the full SHA
    e216405 View commit details
  2. x12 stuff + readme

    tpruvot committed Mar 26, 2018
    Copy the full SHA
    8433745 View commit details
  3. x12: a bit more code cleanup

    tpruvot committed Mar 26, 2018
    Copy the full SHA
    51c02a7 View commit details
  4. Copy the full SHA
    0961544 View commit details

Commits on Mar 29, 2018

  1. Copy the full SHA
    5b1b77b View commit details
  2. Copy the full SHA
    96adaf9 View commit details

Commits on Mar 31, 2018

  1. Copy the full SHA
    27199e2 View commit details

Commits on Apr 2, 2018

  1. x16: optimised echo512-64 kernel for maxwell+

    which keep the SM 3.0 compat with x11 kernel
    tpruvot committed Apr 2, 2018
    Copy the full SHA
    13e333d View commit details
  2. Copy the full SHA
    2fdc10a View commit details
  3. scrypt stuff

    tpruvot committed Apr 2, 2018
    Copy the full SHA
    ff73bda View commit details
  4. readme for 2.2.5 release

    tpruvot committed Apr 2, 2018
    Copy the full SHA
    a81ab0f View commit details

Commits on Apr 7, 2018

  1. x17: apply echo512 improvement

    add a tiny 1% on x17, better than nothing...
    tpruvot committed Apr 7, 2018
    Copy the full SHA
    5d0c0a6 View commit details
  2. fix share diff calculation

    r4sas committed Apr 7, 2018
    Copy the full SHA
    0a475a8 View commit details

Commits on Apr 9, 2018

  1. Copy the full SHA
    16ebe53 View commit details

Commits on Apr 22, 2018

  1. Copy the full SHA
    bfcf7a9 View commit details

Commits on May 6, 2018

  1. allium algo

    tpruvot committed May 6, 2018
    Copy the full SHA
    b97567a View commit details
  2. update readme and win ver

    tpruvot committed May 6, 2018
    Copy the full SHA
    ffd6cf3 View commit details

Commits on May 9, 2018

  1. timetravel: cleanup, remove unused algos

    + cubehash 80 midstate
    tpruvot committed May 9, 2018
    Copy the full SHA
    57f8f77 View commit details

Commits on May 10, 2018

  1. Copy the full SHA
    a9357e1 View commit details

Commits on May 17, 2018

  1. Copy the full SHA
    b8190e4 View commit details

Commits on May 23, 2018

  1. Copy the full SHA
    ded6a39 View commit details
  2. Merge updates from trunk

    r4sas committed May 23, 2018
    Copy the full SHA
    6e7d12e View commit details
  3. Copy the full SHA
    be64645 View commit details

Commits on May 28, 2018

  1. phi2 algo

    tpruvot committed May 28, 2018
    Copy the full SHA
    3d03a1b View commit details

Commits on Jun 10, 2018

  1. Copy the full SHA
    07859f9 View commit details

Commits on Jun 18, 2018

  1. Copy the full SHA
    9fd5b04 View commit details

Commits on Jun 21, 2018

  1. Copy the full SHA
    968d2ba View commit details

Commits on Jun 23, 2018

  1. handle new cryptonight variants, stellite, aeon

    special thanks for klausT changes and ystarnaud who helped me to adapt my kernel variants...
    
    Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
    tpruvot committed Jun 23, 2018
    Copy the full SHA
    77c4b87 View commit details
  2. prepare the new release

    tpruvot committed Jun 23, 2018
    Copy the full SHA
    6dc1bbd View commit details
  3. add sonoa algo, heavy x17 hashes

    seems to works, more or less correctly (a few validation errors)
    tpruvot committed Jun 23, 2018
    Copy the full SHA
    d9f242b View commit details

Commits on Jun 24, 2018

  1. Copy the full SHA
    654e8a1 View commit details
  2. Copy the full SHA
    370684f View commit details

Commits on Aug 3, 2018

  1. Copy the full SHA
    4a76ca5 View commit details

Commits on Sep 20, 2018

  1. Copy the full SHA
    1f5efa7 View commit details

Commits on Oct 22, 2018

  1. Add exosis algo (tpruvot#69)

    opensourcerulez authored and tpruvot committed Oct 22, 2018
    Copy the full SHA
    b36d174 View commit details

Commits on Nov 30, 2018

  1. handle standard blake2b stratum algo

    no weird protocol or reversed endian like sia...
    tpruvot committed Nov 30, 2018
    Copy the full SHA
    01e632c View commit details

Commits on Jan 27, 2019

  1. sha256q (tpruvot#70)

    pyritepirate authored and tpruvot committed Jan 27, 2019
    Copy the full SHA
    c59bc24 View commit details

Commits on Jan 30, 2019

  1. Handle lyra2v3 algo, for VTC fork

    mostly imported from opensourced vertcoin-miner with a few fixes
    tpruvot committed Jan 30, 2019
    Copy the full SHA
    9a1f20d View commit details
  2. v2.3.1 release

    tpruvot committed Jan 30, 2019
    Copy the full SHA
    6ff4e50 View commit details

Commits on May 3, 2019

  1. upsteam 2.3.1

    r4sas committed May 3, 2019
    Copy the full SHA
    7e51386 View commit details

Commits on Sep 18, 2022

  1. Copy the full SHA
    1e531be View commit details

Commits on Sep 20, 2022

  1. support arch 8.6 for 3080

    orignal committed Sep 20, 2022
    Copy the full SHA
    ca0fa33 View commit details
Showing with 10,641 additions and 978 deletions.
  1. +16 −7 Makefile.am
  2. +46 −12 README.txt
  3. +57 −0 algos.h
  4. +3 −3 api.cpp
  5. +27 −1 bench.cpp
  6. +273 −0 blake2b.cu
  7. +129 −12 ccminer.cpp
  8. +27 −3 ccminer.vcxproj
  9. +81 −3 ccminer.vcxproj.filters
  10. +1 −1 compat/ccminer-config.h
  11. +1 −1 configure.ac
  12. +1 −0 crypto/cn_aes.cuh
  13. +1 −1 crypto/cn_blake.cuh
  14. +5 −4 crypto/cn_groestl.cuh
  15. +11 −9 crypto/cn_jh.cuh
  16. +1 −1 crypto/cn_keccak.cuh
  17. +8 −14 crypto/cn_skein.cuh
  18. +78 −8 crypto/cryptolight-core.cu
  19. +32 −15 crypto/cryptolight-cpu.cpp
  20. +19 −11 crypto/cryptolight.cu
  21. +7 −6 crypto/cryptolight.h
  22. +183 −53 crypto/cryptonight-core.cu
  23. +56 −14 crypto/cryptonight-cpu.cpp
  24. +70 −105 crypto/cryptonight-extra.cu
  25. +24 −13 crypto/cryptonight.cu
  26. +6 −7 crypto/cryptonight.h
  27. +8 −2 crypto/xmr-rpc.cpp
  28. +17 −20 equi/cuda_equi.cu
  29. +1 −1 equi/equi-stratum.cpp
  30. +1 −2 equi/equihash.cpp
  31. +6 −1 gost/gost.cu
  32. +173 −0 lyra2/Lyra2.c
  33. +1 −0 lyra2/Lyra2.h
  34. +217 −0 lyra2/allium.cu
  35. +119 −29 lyra2/cuda_lyra2.cu
  36. +66 −3 lyra2/cuda_lyra2_sm2.cuh
  37. +66 −10 lyra2/cuda_lyra2_sm5.cuh
  38. +481 −0 lyra2/cuda_lyra2v3.cu
  39. +348 −0 lyra2/cuda_lyra2v3_sm3.cuh
  40. +2 −2 lyra2/lyra2RE.cu
  41. +183 −0 lyra2/lyra2REv3.cu
  42. +41 −6 miner.h
  43. +10 −11 neoscrypt/cuda_neoscrypt.cu
  44. +1 −0 neoscrypt/neoscrypt.cpp
  45. +89 −0 phi/cuda_phi2.cu
  46. +319 −0 phi/cuda_phi2_cubehash512.cu
  47. +4 −4 {x11 → phi}/phi.cu
  48. +268 −0 phi/phi2.cu
  49. +7 −7 res/ccminer.rc
  50. +12 −2 scrypt.cpp
  51. +2 −1 scrypt/salsa_kernel.cu
  52. +2 −3 scrypt/test_kernel.cu
  53. +2 −2 scrypt/titan_kernel.cu
  54. +507 −0 sha256/cuda_sha256q.cu
  55. +136 −0 sha256/sha256q.cu
  56. +4 −4 sia/sia-rpc.cpp
  57. +9 −9 sia/sia.cu
  58. +65 −41 util.cpp
  59. +16 −5 x11/cuda_streebog_maxwell.cu
  60. +46 −8 x11/cuda_x11_cubehash512.cu
  61. +497 −0 x11/exosis.cu
  62. +5 −62 x11/timetravel.cu
  63. +248 −0 x12/x12.cu
  64. +284 −431 x13/cuda_x13_hamsi512.cu
  65. +59 −5 x15/cuda_x15_whirlpool_sm3.cu
  66. +80 −0 x16/cuda_x16.h
  67. +214 −0 x16/cuda_x16_echo512.cu
  68. +260 −0 x16/cuda_x16_echo512_64.cu
  69. +467 −0 x16/cuda_x16_fugue512.cu
  70. +350 −0 x16/cuda_x16_shabal512.cu
  71. +1,836 −0 x16/cuda_x16_simd512_80.cu
  72. +623 −0 x16/x16r.cu
  73. +602 −0 x16/x16s.cu
  74. +77 −0 x17/cuda_x17_sha512.cu
  75. +632 −0 x17/sonoa.cu
  76. +15 −3 x17/x17.cu
23 changes: 16 additions & 7 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -38,13 +38,16 @@ ccminer_SOURCES = elist.h miner.h compat.h \
lyra2/Lyra2.c lyra2/Sponge.c \
lyra2/lyra2RE.cu lyra2/cuda_lyra2.cu \
lyra2/lyra2REv2.cu lyra2/cuda_lyra2v2.cu \
lyra2/lyra2REv3.cu lyra2/cuda_lyra2v3.cu \
lyra2/Lyra2Z.c lyra2/lyra2Z.cu lyra2/cuda_lyra2Z.cu \
lyra2/allium.cu \
Algo256/cuda_bmw256.cu Algo256/cuda_cubehash256.cu \
Algo256/cuda_blake256.cu Algo256/cuda_groestl256.cu \
Algo256/cuda_keccak256_sm3.cu Algo256/cuda_keccak256.cu Algo256/cuda_skein256.cu \
Algo256/blake256.cu Algo256/decred.cu Algo256/vanilla.cu Algo256/keccak256.cu \
Algo256/blake2s.cu sph/blake2s.c \
Algo256/bmw.cu Algo256/cuda_bmw.cu \
blake2b.cu \
crypto/xmr-rpc.cpp crypto/wildkeccak-cpu.cpp crypto/wildkeccak.cu \
crypto/cryptolight.cu crypto/cryptolight-core.cu crypto/cryptolight-cpu.cpp \
crypto/cryptonight.cu crypto/cryptonight-core.cu crypto/cryptonight-extra.cu \
@@ -58,7 +61,7 @@ ccminer_SOURCES = elist.h miner.h compat.h \
neoscrypt/neoscrypt.cpp neoscrypt/neoscrypt-cpu.c neoscrypt/cuda_neoscrypt.cu \
pentablake.cu skein.cu cuda_skeincoin.cu skein2.cpp zr5.cu \
skunk/skunk.cu skunk/cuda_skunk.cu skunk/cuda_skunk_streebog.cu \
sha256/sha256d.cu sha256/cuda_sha256d.cu sha256/sha256t.cu sha256/cuda_sha256t.cu \
sha256/sha256d.cu sha256/cuda_sha256d.cu sha256/sha256t.cu sha256/cuda_sha256t.cu sha256/sha256q.cu sha256/cuda_sha256q.cu \
sia/sia.cu sia/sia-rpc.cpp sph/blake2b.c \
sph/bmw.c sph/blake.c sph/groestl.c sph/jh.c sph/keccak.c sph/skein.c \
sph/cubehash.c sph/echo.c sph/luffa.c sph/sha2.c sph/shavite.c sph/simd.c \
@@ -69,15 +72,18 @@ ccminer_SOURCES = elist.h miner.h compat.h \
lbry/lbry.cu lbry/cuda_sha256_lbry.cu lbry/cuda_sha512_lbry.cu lbry/cuda_lbry_merged.cu \
qubit/qubit.cu qubit/qubit_luffa512.cu qubit/deep.cu qubit/luffa.cu \
tribus/tribus.cu tribus/cuda_echo512_final.cu \
x11/x11.cu x11/fresh.cu x11/cuda_x11_luffa512.cu x11/cuda_x11_cubehash512.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu \
x11/x11.cu x12/x12.cu x11/fresh.cu x11/cuda_x11_luffa512.cu x11/cuda_x11_cubehash512.cu \
x11/cuda_x11_shavite512.cu x11/cuda_x11_simd512.cu x11/cuda_x11_echo.cu x11/exosis.cu \
x11/cuda_x11_luffa512_Cubehash.cu x11/x11evo.cu x11/timetravel.cu x11/bitcore.cu \
x13/x13.cu x13/cuda_x13_hamsi512.cu x13/cuda_x13_fugue512.cu \
x13/hsr.cu x13/cuda_hsr_sm3.cu x13/sm3.c \
x15/x14.cu x15/x15.cu x15/cuda_x14_shabal512.cu x15/cuda_x15_whirlpool.cu \
x15/whirlpool.cu x15/cuda_x15_whirlpool_sm3.cu \
x17/x17.cu x17/hmq17.cu x17/cuda_x17_haval256.cu x17/cuda_x17_sha512.cu \
x11/phi.cu x11/cuda_streebog_maxwell.cu \
x16/x16r.cu x16/x16s.cu x16/cuda_x16_echo512.cu x16/cuda_x16_fugue512.cu \
x16/cuda_x16_shabal512.cu x16/cuda_x16_simd512_80.cu \
x16/cuda_x16_echo512_64.cu \
x17/x17.cu x17/hmq17.cu x17/sonoa.cu x17/cuda_x17_haval256.cu x17/cuda_x17_sha512.cu \
phi/phi.cu phi/phi2.cu phi/cuda_phi2.cu phi/cuda_phi2_cubehash512.cu x11/cuda_streebog_maxwell.cu \
x11/c11.cu x11/s3.cu x11/sib.cu x11/veltor.cu x11/cuda_streebog.cu \
gost/gost.cu gost/cuda_gosthash.cu

@@ -113,9 +119,12 @@ endif
ccminer_LDADD += -lcuda

nvcc_ARCH :=
#nvcc_ARCH += -gencode=arch=compute_61,code=\"sm_61,compute_61\"
#nvcc_ARCH += -gencode=arch=compute_86,code=\"sm_86,compute_86\" # CUDA 11.1
#nvcc_ARCH += -gencode=arch=compute_75,code=\"sm_75,compute_75\" # CUDA 10 req.
#nvcc_ARCH += -gencode=arch=compute_70,code=\"sm_70,compute_70\" # CUDA 9.1
#nvcc_ARCH += -gencode=arch=compute_61,code=\"sm_61,compute_61\" # CUDA 8
nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
nvcc_ARCH += -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"

58 changes: 46 additions & 12 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

ccminer 2.2.4 (Jan. 2018) "lyra2v2 and keccak improvements"
ccminer 2.3.1 "lyra2v3, exosis and sha256q"
---------------------------------------------------------------

***************************************************************
@@ -41,19 +41,20 @@ Keccak (Maxcoin)
Pentablake (Blake 512 x5)
1Coin Triple S
Neoscrypt (FeatherCoin)
Revolver (X11evo)
x11evo (Revolver)
phi2 (LUXCoin)
Scrypt and Scrypt:N
Scrypt-Jane (Chacha)
Sibcoin (sib)
sib (Sibcoin)
Skein (Skein + SHA)
Signatum (Skein cubehash fugue Streebog)
SonoA (Sono)
Tribus (JH, keccak, simd)
Woodcoin (Double Skein)
Vanilla (Blake256 8-rounds - double sha256)
Vertcoin Lyra2RE
Ziftrcoin (ZR5)
Vertcoin Lyra2REv3
Boolberry (Wild Keccak)
Monero (Cryptonight)
Monero (Cryptonight v7 with -a monero)
Aeon (Cryptonight-lite)

where some of these coins have a VERY NOTABLE nVidia advantage
@@ -73,19 +74,21 @@ This code is based on the pooler cpuminer and inherits
its command line interface and options.

-a, --algo=ALGO specify the algorithm to use
allium use to mine Garlic
bastion use to mine Joincoin
bitcore use to mine Bitcore's Timetravel10
blake use to mine Saffroncoin (Blake256)
blakecoin use to mine Old Blake 256
blake2s use to mine Nevacoin (Blake2-S 256)
bmw use to mine Midnight
cryptolight use to mine AEON cryptonight (MEM/2)
cryptonight use to mine XMR cryptonight, Bytecoin, Dash, DigitalNote, etc
cryptolight use to mine AEON cryptonight variant 1 (MEM/2)
cryptonight use to mine original cryptonight
c11/flax use to mine Chaincoin and Flax
decred use to mine Decred 180 bytes Blake256-14
deep use to mine Deepcoin
dmd-gr use to mine Diamond-Groestl
equihash use to mine ZEC, HUSH and KMD
exosis use to mine EXO
fresh use to mine Freshcoin
fugue256 use to mine Fuguecoin
groestl use to mine Groestlcoin
@@ -96,13 +99,16 @@ its command line interface and options.
lbry use to mine LBRY Credits
luffa use to mine Joincoin
lyra2 use to mine CryptoCoin
lyra2v2 use to mine Vertcoin
lyra2v2 use to mine Monacoin
lyra2v3 use to mine Vertcoin
lyra2z use to mine Zerocoin (XZC)
monero use to mine Monero (XMR)
myr-gr use to mine Myriad-Groest
neoscrypt use to mine FeatherCoin, Trezarcoin, Orbitcoin, etc
nist5 use to mine TalkCoin
penta use to mine Joincoin / Pentablake
phi use to mine LUXCoin
phi1612 use to mine Seraph
phi2 use to mine LUXCoin
polytimos use to mine Polytimos
quark use to mine Quarkcoin
qubit use to mine Qubit
@@ -111,17 +117,24 @@ its command line interface and options.
scrypt-jane use to mine Chacha coins like Cache and Ultracoin
s3 use to mine 1coin (ONE)
sha256t use to mine OneCoin (OC)
sha256q use to mine Pyrite
sia use to mine SIA
sib use to mine Sibcoin
skein use to mine Skeincoin
skein2 use to mine Woodcoin
skunk use to mine Signatum
sonoa use to mine Sono
stellite use to mine Stellite (a cryptonight variant)
timetravel use to mine MachineCoin
tribus use to mine Denarius
x11evo use to mine Revolver
x11 use to mine DarkCoin
x14 use to mine X14Coin
x12 use to mine GalaxyCash
x13 use to mine X13
x14 use to mine X14
x15 use to mine Halcyon
x16r use to mine Raven
x16s use to mine Pigeon and Eden
x17 use to mine X17
vanilla use to mine Vanilla (Blake256)
veltor use to mine VeltorCoin
@@ -277,7 +290,28 @@ so we can more efficiently implement new algorithms using the latest hardware
features.

>>> RELEASE HISTORY <<<
Jan. 04th 2017 v2.2.4
Jan. 30th 2019 v2.3.1
Handle Lyra2v3 algo
Handle sha256q algo
Handle exosis algo
Handle blake2b standard algo

June 23th 2018 v2.3
Handle phi2 header variation for smart contracts
Handle monero, stellite, graft and cryptolight variants
Handle SonoA algo

June 10th 2018 v2.2.6
New phi2 algo for LUX
New allium algo for Garlic

Apr. 02nd 2018 v2.2.5
New x16r algo for Raven
New x16s algo for Pigeon and Eden
New x12 algo for Galaxycash
Equihash (SIMT) sync issues for the Volta generation

Jan. 04th 2018 v2.2.4
Improve lyra2v2
Higher keccak default intensity
Drop SM 2.x support by default, for CUDA 9 and more recent
57 changes: 57 additions & 0 deletions algos.h
Original file line number Diff line number Diff line change
@@ -7,7 +7,9 @@
enum sha_algos {
ALGO_BLAKECOIN = 0,
ALGO_BLAKE,
ALGO_BLAKE2B,
ALGO_BLAKE2S,
ALGO_ALLIUM,
ALGO_BMW,
ALGO_BASTION,
ALGO_C11,
@@ -17,9 +19,11 @@ enum sha_algos {
ALGO_DECRED,
ALGO_DMD_GR,
ALGO_EQUIHASH,
ALGO_EXOSIS,
ALGO_FRESH,
ALGO_FUGUE256, /* Fugue256 */
ALGO_GOSTD,
ALGO_GOSTCOIN,
ALGO_GROESTL,
ALGO_HEAVY, /* Heavycoin hash */
ALGO_HMQ1725,
@@ -32,34 +36,41 @@ enum sha_algos {
ALGO_LUFFA,
ALGO_LYRA2,
ALGO_LYRA2v2,
ALGO_LYRA2v3,
ALGO_LYRA2Z,
ALGO_MJOLLNIR, /* Hefty hash */
ALGO_MYR_GR,
ALGO_NEOSCRYPT,
ALGO_NIST5,
ALGO_PENTABLAKE,
ALGO_PHI,
ALGO_PHI2,
ALGO_POLYTIMOS,
ALGO_QUARK,
ALGO_QUBIT,
ALGO_SCRYPT,
ALGO_SCRYPT_JANE,
ALGO_SHA256D,
ALGO_SHA256T,
ALGO_SHA256Q,
ALGO_SIA,
ALGO_SIB,
ALGO_SKEIN,
ALGO_SKEIN2,
ALGO_SKUNK,
ALGO_SONOA,
ALGO_S3,
ALGO_TIMETRAVEL,
ALGO_TRIBUS,
ALGO_BITCORE,
ALGO_X11EVO,
ALGO_X11,
ALGO_X12,
ALGO_X13,
ALGO_X14,
ALGO_X15,
ALGO_X16R,
ALGO_X16S,
ALGO_X17,
ALGO_VANILLA,
ALGO_VELTOR,
@@ -68,6 +79,9 @@ enum sha_algos {
ALGO_WHIRLPOOLX,
ALGO_WILDKECCAK,
ALGO_ZR5,
ALGO_MONERO,
ALGO_GRAFT,
ALGO_STELLITE,
ALGO_AUTO,
ALGO_COUNT
};
@@ -77,7 +91,9 @@ extern volatile enum sha_algos opt_algo;
static const char *algo_names[] = {
"blakecoin",
"blake",
"blake2b",
"blake2s",
"allium",
"bmw",
"bastion",
"c11",
@@ -87,9 +103,11 @@ static const char *algo_names[] = {
"decred",
"dmd-gr",
"equihash",
"exosis",
"fresh",
"fugue256",
"gostd",
"gostcoin",
"groestl",
"heavy",
"hmq1725",
@@ -102,34 +120,41 @@ static const char *algo_names[] = {
"luffa",
"lyra2",
"lyra2v2",
"lyra2v3",
"lyra2z",
"mjollnir",
"myr-gr",
"neoscrypt",
"nist5",
"penta",
"phi",
"phi2",
"polytimos",
"quark",
"qubit",
"scrypt",
"scrypt-jane",
"sha256d",
"sha256t",
"sha256q",
"sia",
"sib",
"skein",
"skein2",
"skunk",
"sonoa",
"s3",
"timetravel",
"tribus",
"bitcore",
"x11evo",
"x11",
"x12",
"x13",
"x14",
"x15",
"x16r",
"x16s",
"x17",
"vanilla",
"veltor",
@@ -138,6 +163,9 @@ static const char *algo_names[] = {
"whirlpoolx",
"wildkeccak",
"zr5",
"monero",
"graft",
"stellite",
"auto", /* reserved for multi algo */
""
};
@@ -177,12 +205,16 @@ static inline int algo_to_int(char* arg)
i = ALGO_LYRA2;
else if (!strcasecmp("lyra2rev2", arg))
i = ALGO_LYRA2v2;
else if (!strcasecmp("lyra2rev3", arg))
i = ALGO_LYRA2v3;
else if (!strcasecmp("phi1612", arg))
i = ALGO_PHI;
else if (!strcasecmp("bitcoin", arg))
i = ALGO_SHA256D;
else if (!strcasecmp("sha256", arg))
i = ALGO_SHA256D;
else if (!strcasecmp("gostcoin", arg))
i = ALGO_GOSTCOIN;
else if (!strcasecmp("gost", arg))
i = ALGO_GOSTD;
else if (!strcasecmp("thorsriddle", arg))
@@ -200,4 +232,29 @@ static inline int algo_to_int(char* arg)
return i;
}

static inline int get_cryptonight_algo(int fork)
{
int algo = ALGO_COUNT;

switch (fork) {
case 8:
algo = ALGO_GRAFT;
break;

case 7:
algo = ALGO_MONERO;
break;

case 3:
algo = ALGO_STELLITE;
break;

default:
algo = ALGO_CRYPTONIGHT;
break;
}

return algo;
}

#endif
Loading