z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
290 stars 440 forks source link

'Invalid checksum' - Fork 0 died, spawning replacement worker #161

Closed owenashurst closed 7 years ago

owenashurst commented 7 years ago

Just setup Z-Nomp on a fresh install of Ubuntu Server 16.04LTS with the ZCash wallet installed from the repository. It was working fine and kept displaying the progress of how far the coin daemon was through downloading the blocks.

I found that this morning however it's throwing the same error repeatedly in the terminal;

2017-07-03 08:51:03 [Master] [PoolSpawner] Fork 0 died, spawning replacement worker... 2017-07-03 08:51:06 [Switching] [Setup] (Thread 1) Loading last proxy state from redis 2017-07-03 08:51:06 [Pool] [zcash] (Thread 1) Share processing setup with redis (127.0.0.1:6379) /home/miningspace/z-nomp/node_modules/bs58check/index.js:46 if (!payload) throw new Error('Invalid checksum') ^

Error: Invalid checksum at Object.decode (/home/miningspace/z-nomp/node_modules/bs58check/index.js:46:23) at Object.fromBase58Check (/home/miningspace/z-nomp/node_modules/bitcoinjs-lib-zcash/src/address.js:8:27) at Object.exports.createGeneration (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/transactions.js:87:46) at new BlockTemplate (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/blockTemplate.js:43:35) at JobManager.processTemplate (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/jobManager.js:146:32) at /home/miningspace/z-nomp/node_modules/stratum-pool/lib/pool.js:588:66 at itemFinished (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/daemon.js:155:36) at /home/miningspace/z-nomp/node_modules/stratum-pool/lib/daemon.js:169:17 at parseJson (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/daemon.js:85:17) at IncomingMessage. (/home/miningspace/z-nomp/node_modules/stratum-pool/lib/daemon.js:95:17)

Any ideas?


Fix: Turns out the issue was related to the 'rewardRecipients' (issue tracker didn't show anything for me when I checked until I checked again).

Had to make sure that if I didn't want any fee's, the object was empty -

"rewardRecipients": { },

Maybe this could include either a default address or no address at all in the default config to avoid future issues?