cryptonote-nodejs-pool icon indicating copy to clipboard operation
cryptonote-nodejs-pool copied to clipboard

Haven and blocks.map is not a function

Open joescalon opened this issue 3 years ago • 2 comments

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.

joescalon avatar Jun 10 '21 19:06 joescalon

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.

xtc18 avatar Jul 01 '21 21:07 xtc18

Thank you, npm install [email protected] fixed the issue for me

insidenothing avatar Jul 20 '21 22:07 insidenothing