mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 03:59:41 +00:00
#1227 Added "arqma" value for "coin" option.
This commit is contained in:
parent
bb7bff9115
commit
ee87f73d5e
2 changed files with 11 additions and 1 deletions
|
@ -49,6 +49,8 @@ struct CoinName
|
|||
static CoinName const coin_names[] = {
|
||||
{ "monero", Coin::MONERO },
|
||||
{ "xmr", Coin::MONERO },
|
||||
{ "arqma", Coin::ARQMA },
|
||||
{ "arq", Coin::ARQMA }
|
||||
};
|
||||
|
||||
|
||||
|
@ -58,8 +60,15 @@ static CoinName const coin_names[] = {
|
|||
|
||||
xmrig::Algorithm::Id xmrig::Coin::algorithm(uint8_t blobVersion) const
|
||||
{
|
||||
if (id() == MONERO) {
|
||||
switch (id()) {
|
||||
case MONERO:
|
||||
return (blobVersion >= 12) ? Algorithm::RX_0 : Algorithm::CN_R;
|
||||
|
||||
case ARQMA:
|
||||
return (blobVersion >= 15) ? Algorithm::RX_ARQ : Algorithm::CN_PICO_0;
|
||||
|
||||
case INVALID:
|
||||
break;
|
||||
}
|
||||
|
||||
return Algorithm::INVALID;
|
||||
|
|
|
@ -40,6 +40,7 @@ public:
|
|||
enum Id : int {
|
||||
INVALID = -1,
|
||||
MONERO,
|
||||
ARQMA
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue