From c8d9bc5653070253fe051973212d18680dc7adb2 Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Wed, 26 Jun 2024 22:30:43 +0100 Subject: [PATCH] initial import of Salvium-specific details for Coin and WalletAddress information --- src/base/crypto/Coin.cpp | 1 + src/base/crypto/Coin.h | 1 + src/base/tools/cryptonote/WalletAddress.cpp | 12 ++++++++++++ 3 files changed, 14 insertions(+) diff --git a/src/base/crypto/Coin.cpp b/src/base/crypto/Coin.cpp index c528acec..6b0dac67 100644 --- a/src/base/crypto/Coin.cpp +++ b/src/base/crypto/Coin.cpp @@ -55,6 +55,7 @@ static const CoinInfo coinInfo[] = { { Algorithm::RX_WOW, "WOW", "Wownero", 300, 100000000000, MAGENTA_BG_BOLD(WHITE_BOLD_S " wownero ") }, { Algorithm::RX_0, "ZEPH", "Zephyr", 120, 1000000000000, BLUE_BG_BOLD( WHITE_BOLD_S " zephyr ") }, { Algorithm::RX_0, "Townforge","Townforge", 30, 100000000, MAGENTA_BG_BOLD(WHITE_BOLD_S " townforge ") }, + { Algorithm::RX_0, "SAL", "Salvium", 120, 100000000, BLUE_BG_BOLD( WHITE_BOLD_S " salvium ") }, }; diff --git a/src/base/crypto/Coin.h b/src/base/crypto/Coin.h index 12ac1497..8d8546a3 100644 --- a/src/base/crypto/Coin.h +++ b/src/base/crypto/Coin.h @@ -41,6 +41,7 @@ public: WOWNERO, ZEPHYR, TOWNFORGE, + SALVIUM, MAX }; diff --git a/src/base/tools/cryptonote/WalletAddress.cpp b/src/base/tools/cryptonote/WalletAddress.cpp index 3719031a..a66acbe1 100644 --- a/src/base/tools/cryptonote/WalletAddress.cpp +++ b/src/base/tools/cryptonote/WalletAddress.cpp @@ -261,6 +261,18 @@ const xmrig::WalletAddress::TagInfo &xmrig::WalletAddress::tagInfo(uint64_t tag) { 0x424220, { Coin::TOWNFORGE, STAGENET, PUBLIC, 38881, 38882 } }, { 0x424221, { Coin::TOWNFORGE, STAGENET, SUBADDRESS, 38881, 38882 } }, + { 0x3ef318, { Coin::SALVIUM, MAINNET, PUBLIC, 19081, 19082 } }, + { 0x55ef318, { Coin::SALVIUM, MAINNET, INTEGRATED, 19081, 19082 } }, + { 0xf5ef318, { Coin::SALVIUM, MAINNET, SUBADDRESS, 19081, 19082 } }, + + { 0x15beb318, { Coin::SALVIUM, TESTNET, PUBLIC, 29081, 29082 } }, + { 0xd055eb318, { Coin::SALVIUM, TESTNET, INTEGRATED, 29081, 29082 } }, + { 0xa59eb318, { Coin::SALVIUM, TESTNET, SUBADDRESS, 29081, 29082 } }, + + { 0x149eb318, { Coin::SALVIUM, STAGENET, PUBLIC, 39081, 39082 } }, + { 0xf343eb318, { Coin::SALVIUM, STAGENET, INTEGRATED, 39081, 39082 } }, + { 0x2d47eb318, { Coin::SALVIUM, STAGENET, SUBADDRESS, 39081, 39082 } }, + }; const auto it = tags.find(tag);