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
364 stars 611 forks source link

New coin setup API error #560

Closed felixlandicho closed 4 years ago

felixlandicho commented 4 years ago

Hi guys, I'm trying to create a new pool for a new coin. After setting up the config, this error keeps popping every 2 minutes.

Can you help me please

ReplyError: EXECABORT Transaction discarded because of previous errors.
    at parseError (/<path to pool directory>/node_modules/redis-parser/lib/parser.js:193:12)
    at parseType (/<path to pool directory>/node_modules/redis-parser/lib/parser.js:303:14)

ReplyError: EXECABORT Transaction discarded because of previous errors.
    at parseError (/<path to pool directory>/node_modules/redis-parser/lib/parser.js:193:12)
    at parseType (/<path to pool directory>/node_modules/redis-parser/lib/parser.js:303:14)

2020-01-15 00:23:22 [master] API died, spawning replacement...
felixlandicho commented 4 years ago

Ok, got it working.

It was an error on startRpcMonitoring -> stat[property] is null or undefined

Didn't know why some value would be undefined but some check fixed it.

for (let property in stat) {
    if (stat[property]) {
        redisCommands.push(['hset', key, property, stat[property]]);
    }
}

Thanks guys