dvandal / cryptonote-nodejs-pool

Mining pool for all CryptoNote based coins using Cryptonight, Cryptonight Light and Cryptonight Heavy algorithms
GNU General Public License v2.0
367 stars 612 forks source link

How update turtlecoin? Chukwa2 #720

Closed lioncrypter closed 1 year ago

lioncrypter commented 1 year ago

i no found how can i work turtlecoin because they change algo

Cideg commented 1 year ago

static xmrig::cn_hash_fun get_argon2_fn(const int algo) {

https://github.com/MoneroOcean/node-cryptonight-hashing/blob/ffb88e68a3f928112a843318d0120a2ccd00ad34/multihashing.cc#L253

"cnAlgorithm": "argon2",

lioncrypter commented 1 year ago

static xmrig::cn_hash_fun get_argon2_fn(const int algo) {

https://github.com/MoneroOcean/node-cryptonight-hashing/blob/ffb88e68a3f928112a843318d0120a2ccd00ad34/multihashing.cc#L253

"cnAlgorithm": "argon2",

so i need change all multihashing.cc copy and paste, or only add static xmrig::cn_hash_fun get_argon2_fn(const int algo) { switch (algo) { case 0: return FN(AR2_CHUKWA); case 1: return FN(AR2_WRKZ); case 2: return FN(AR2_CHUKWA_V2); default: return FN(AR2_CHUKWA); } }

Cideg commented 1 year ago

????????????????????????????????????????????????????????????????????? config.js


    "coin": "TurtleCoin",
    "symbol": "TRTL",
    "coinUnits": 100,
    "coinDecimalPlaces": 4,
    "coinDifficultyTarget": 30,
    "blockchainExplorer": "https://explorer.turtlecoin.lol/block.html?hash={id}",
    "transactionExplorer": "https://explorer.turtlecoin.lol/transaction.html?hash={id}",

    "daemonType": "bytecoin",
    "cnAlgorithm": "argon2",
    "cnVariant": 2,
    "cnBlobType": 2,