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

Error: Failed to parse block #81

Closed youzidebaba closed 6 years ago

youzidebaba commented 6 years ago

Plese help, i'm using qwerty.

Error: Failed to parse block at Error (native) at Object.BlockTemplate.nextBlob (/root/DATA/qwc/lib/pool.js:155:29) at Object.Miner.getJob (/root/DATA/qwc/lib/pool.js:331:41) at handleMinerMethod (/root/DATA/qwc/lib/pool.js:465:28) at handleMessage (/root/DATA/qwc/lib/pool.js:832:13) at Socket. (/root/DATA/qwc/lib/pool.js:886:25) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at readableAddChunk (_stream_readable.js:153:18) at Socket.Readable.push (_stream_readable.js:111:10) image

jbnl commented 6 years ago

Same issue for me

dvandal commented 6 years ago

This issue occur when using wrong cryptonight algorithm. First update to lastest release 1.3.2 then try different algorithms. I'm not sure but I think qwerty coin is using "cryptonight_heavy".

leisegang commented 6 years ago

when i get it to compile the node_modules it hangs on connection to the pool:

PM2 | App name:pool id:12 online 12|pool | Failed to read config file config.json 12|pool | SyntaxError: Unexpected string 12|pool | ReferenceError: config is not defined 12|pool | at Object. (/pinkstar/pool/lib/logger.js:29:14) 12|pool | at Module._compile (module.js:409:26) 12|pool | at Object.Module._extensions..js (module.js:416:10) 12|pool | at Module.load (module.js:343:32) 12|pool | at Function.Module._load (module.js:300:12) 12|pool | at Module.require (module.js:353:17) 12|pool | at require (internal/module.js:12:17) 12|pool | at Object. (/pinkstar/pool/init.js:17:1) 12|pool | at Module._compile (module.js:409:26) 12|pool | at Object.Module._extensions..js (module.js:416:10) PM2 | App [pool] with id [12] and pid [13330], exited with code [1] via signal [SIGINT] PM2 | Script /pinkstar/pool/init.js had too many unstable restarts (16). Stopped. "errored"

dvandal commented 6 years ago

12|pool | Failed to read config file config.json 12|pool | SyntaxError: Unexpected string 12|pool | ReferenceError: config is not defined

The code is unable to read config.json file

leisegang commented 6 years ago

i changed from:

    "cnAlgorithm": "cryptonight",
    "cnVariant": 1

to:

"cnAlgorithm": "cryptonight_light",
"cnVariant": 1
youzidebaba commented 6 years ago

1 1 1 2 2 2 3 3 3 333

But using this program can run https://github.com/qwertycoin-org/qwertycoin-pool.git well. Can you help me see why? I don't want to use his program. His program functions are too few!

@dvandal

dvandal commented 6 years ago

Please try lastest code, all issues should be fixed. You may need to set new cnBlobType setting.