Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ayaseen opened this issue Feb 21, 2021 · 3 comments
Open

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

ayaseen opened this issue Feb 21, 2021 · 3 comments

Comments

@ayaseen
Copy link

ayaseen commented Feb 21, 2021

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
Copy link
Owner

dvandal commented Feb 24, 2021

You pool wallet address is wrong in JSON config file.

@ayaseen
Copy link
Author

ayaseen commented Feb 24, 2021

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

Thanks

@thefundcrypto
Copy link

thefundcrypto commented Apr 7, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants