Skip to content
Snippets Groups Projects
Unverified Commit 7230d2ea authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #2215 from psychocrypt/topic-addCNV8Half

add cryptonight_v8_half
parents 13acd39a b0b4238e
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,10 @@ Besides [Monero](https://getmonero.org), following coins can be mined using this
- [Graft](https://www.graft.network)
- [Haven](https://havenprotocol.com)
- [Lethean](https://lethean.io)
- [Masari](https://getmasari.org)
- [QRL](https://theqrl.org)
- **[Ryo](https://ryo-currency.com) - Upcoming xmr-stak-gui is sponsored by Ryo**
- [Stellite](https://stellite.cash/)
- [TurtleCoin](https://turtlecoin.lol)
- [Plenteum](https://www.plenteum.com/)
......@@ -61,10 +63,11 @@ If your prefered coin is not listed, you can choose one of the following algorit
- cryptonight_lite_v7_xor (algorithm used by ipbc)
- 2MiB scratchpad memory
- cryptonight
- cryptonight_masari
- cryptonight_masari (used in 2018)
- cryptonight_v7
- cryptonight_v7_stellite
- cryptonight_v8
- cryptonight_v8_half (used by masari and stellite)
- 4MiB scratchpad memory
- cryptonight_haven
- cryptonight_heavy
......
......@@ -24,7 +24,8 @@ enum xmrstak_algo_id
cryptonight_superfast = 12,
cryptonight_gpu = 13,
cryptonight_turtle = start_derived_algo_id
cryptonight_turtle = start_derived_algo_id,
cryptonight_v8_half = (start_derived_algo_id + 1)
// please add the algorithm name to get_algo_name()
};
......@@ -52,9 +53,10 @@ inline std::string get_algo_name(xmrstak_algo_id algo_id)
"cryptonight_gpu"
}};
static std::array<std::string, 1> derived_algo_names =
static std::array<std::string, 2> derived_algo_names =
{{
"cryptonight_turtle"
"cryptonight_turtle",
"cryptonight_v8_half" // used by masari and stellite
}};
......@@ -184,9 +186,10 @@ inline xmrstak_algo POW(xmrstak_algo_id algo_id)
{cryptonight_gpu, cryptonight_gpu, CN_GPU_ITER, CN_MEMORY, CN_GPU_MASK}
}};
static std::array<xmrstak_algo, 1> derived_pow =
static std::array<xmrstak_algo, 2> derived_pow =
{{
{cryptonight_turtle, cryptonight_monero_v8, CN_ITER/8, CN_MEMORY/8, CN_TURTLE_MASK}
{cryptonight_turtle, cryptonight_monero_v8, CN_ITER/8, CN_MEMORY/8, CN_TURTLE_MASK},
{cryptonight_v8_half, cryptonight_monero_v8, CN_ITER/2, CN_MEMORY}
// {cryptonight_derived}
}};
......
......@@ -102,15 +102,18 @@ xmrstak::coin_selection coins[] = {
{ "cryptonight_turtle", {POW(cryptonight_turtle)}, {POW(cryptonight_turtle)}, nullptr },
{ "cryptonight_v7", {POW(cryptonight_monero)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "cryptonight_v8", {POW(cryptonight_monero_v8)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "cryptonight_v8_half", {POW(cryptonight_v8_half)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "cryptonight_v7_stellite", {POW(cryptonight_stellite)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "cryptonight_gpu", {POW(cryptonight_gpu)}, {POW(cryptonight_gpu)}, nullptr },
{ "freehaven", {POW(cryptonight_superfast)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "graft", {POW(cryptonight_monero_v8)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "haven", {POW(cryptonight_haven)}, {POW(cryptonight_heavy)}, nullptr },
{ "lethean", {POW(cryptonight_monero)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "masari", {POW(cryptonight_v8_half)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "monero", {POW(cryptonight_monero_v8)}, {POW(cryptonight_monero_v8)}, "pool.usxmrpool.com:3333" },
{ "qrl", {POW(cryptonight_monero)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "ryo", {POW(cryptonight_gpu), 6u, POW(cryptonight_heavy)}, {POW(cryptonight_gpu), 6u, POW(cryptonight_heavy)}, nullptr },
{ "stellite", {POW(cryptonight_v8_half)}, {POW(cryptonight_monero_v8)}, nullptr },
{ "turtlecoin", {POW(cryptonight_turtle), 6u,POW(cryptonight_aeon)}, {POW(cryptonight_aeon)}, nullptr },
{ "plenteum", {POW(cryptonight_turtle)}, {POW(cryptonight_turtle)}, nullptr }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment