cryptonote-nodejs-pool
cryptonote-nodejs-pool copied to clipboard
Haven and blocks.map is not a function
I run a pool and every since new dvandal update blocks can be found but blockunlocker is constantly crashing. It doesn't orphan a block but does not pay out. The logged error I get is below. TypeError: blocks.map is not a function at /home/server/pool/lib/blockUnlocker.js:120:31 at nextTask (/home/server/pool/node_modules/async/dist/async.js:4576:27) at next (/home/server/pool/node_modules/async/dist/async.js:4584:13) .................
This issue is posted previously without any real fix. I tested with Node 12 and Node 14 both same issue. Does anyone have a fix for this or at least the old dvandal code. Thanks.
I run a pool and every since new dvandal update blocks can be found but blockunlocker is constantly crashing. It doesn't orphan a block but does not pay out. The logged error I get is below. TypeError: blocks.map is not a function at /home/server/pool/lib/blockUnlocker.js:120:31 at nextTask (/home/server/pool/node_modules/async/dist/async.js:4576:27) at next (/home/server/pool/node_modules/async/dist/async.js:4584:13) .................
This issue is posted previously without any real fix. I tested with Node 12 and Node 14 both same issue. Does anyone have a fix for this or at least the old dvandal code. Thanks.
Use async version 1.5.2 to resolve this.
Thank you, npm install [email protected] fixed the issue for me