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 610 forks source link

TypeError: Cannot read property 'toString' of undefined #658

Open ayaseen opened 3 years ago

ayaseen commented 3 years ago

I try different versions of nodejs (8/10/11) none of them worked with me by using this repo.

When I run nodejs init.js, I got this error:

node init.js -config=kva.json 2021-02-20 21:19:45 [master] Starting Cryptonote Node.JS pool version v2.0.0 2021-02-20 21:19:45 [master] Developer donation (devDonation) is set to 0.1%, Please consider raising it to 0.2% or higher !!! 2021-02-20 21:19:45 [master] Pool spawned on 4 thread(s) /root/pool/lib/utils.js:27 var addressBase58Prefix = config.poolServer.pubAddressPrefix ? parseInt(config.poolServer.pubAddressPrefix) : parseInt(cnUtil.address_decode(Buffer.from(config.poolServer.poolAddress)).toString()); ^

TypeError: Cannot read property 'toString' of undefined at Object. (/root/pool/lib/utils.js:27:185) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/pool/lib/daemon.js:1:13) at Module._compile (internal/modules/cjs/loader.js:778:30) 2021-02-20 21:19:46 [master] Daemon died, spawning replacement...

TypeError: Cannot read property 'toString' of undefined at Object. (/root/pool/lib/utils.js:27:185) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/pool/lib/notifications.js:16:13) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/root/pool/lib/pool.js:16:21) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3)

What is this means?

By the way, I try another repo with nodejs version 8, and somehow it worked.

Any idea, what I have missed here?

dvandal commented 3 years ago

You pool wallet address is wrong in JSON config file.

ayaseen commented 3 years ago

@dvandal I am trying to run against Kevacoin. It seems is not supported right now. Would you please do support Kevacoin.

Thanks

thefundcrypto commented 3 years ago

Hello, checking to see if there is any traction on this? I see other projects running this nodejs and kevacoin, so I assuming KVA is supported, but just has a different config.