Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

error on start #49

Closed
sennevb opened this issue Dec 25, 2016 · 3 comments
Closed

error on start #49

sennevb opened this issue Dec 25, 2016 · 3 comments

Comments

@sennevb
Copy link
Collaborator

sennevb commented Dec 25, 2016

getting these error lately on startup:
/root/z-nomp/node_modules/stratum-pool/lib/pool.js:619
if (typeof(_this.jobManager.currentJob) !== 'undefined' && blockHash !== _this.jobManager.currentJob.rpcData.previousblockhash) {
^

TypeError: Cannot read property 'currentJob' of undefined
at pool.processBlockNotify (/root/z-nomp/node_modules/stratum-pool/lib/pool.js:619:36)
at process. (/root/z-nomp/libs/poolWorker.js:42:39)
at emitTwo (events.js:111:20)
at process.emit (events.js:191:7)
at processEmit [as emit] (/root/z-nomp/node_modules/signal-exit/index.js:155:32)
at process.nextTick (internal/child_process.js:752:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

any help?

@jmprcx
Copy link
Member

jmprcx commented Dec 25, 2016

Does that error go away? I have a hunch that joinsplit generations are delaying RPC responses and causing these errors.

A work around is to lengthen the time walletInteval time in your pool config file. I'll have a more thorough look into this tommorow. And if it's a joinsplit issue then I'll submit an issue upstream into Zcash.

@sennevb
Copy link
Collaborator Author

sennevb commented Dec 25, 2016

just on lanch of npm start, not getting it after..

@jmprcx
Copy link
Member

jmprcx commented Dec 25, 2016

Ok.. I've added another typeof check to make sure that _this.jobManager is initialized.

You can update node-stratum-pool with:

npm update
npm install
npm start

Commit: z-classic/node-stratum-pool@32a305c

@jmprcx jmprcx closed this as completed Dec 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants