Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the blockUnlocker.js from crashing #733

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

StarlightJS
Copy link
Contributor

@StarlightJS StarlightJS commented Jan 11, 2024

When using [email protected] it gives you the following error:

TypeError: blocks.map is not a function                                                                                                                                     
    at /root/cryptonote-nodejs-pool/lib/blockUnlocker.js:120:31                                                                                                               
    at nextTask (/root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:5791:27) 
    at next (/root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:5799:13)                                                                                           
    at /root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:329:20             
    at /root/cryptonote-nodejs-pool/lib/blockUnlocker.js:113:5                          
    at /root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:2962:29                                                                                                  
    at wrapper (/root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:273:20)                                                                                         
    at iteratorCallback (/root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:501:17)
    at /root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:329:20             
    at /root/cryptonote-nodejs-pool/node_modules/async/dist/async.js:2959:17                                                                                                  
    at /root/cryptonote-nodejs-pool/lib/blockUnlocker.js:104:6                                                                                                                
    at /root/cryptonote-nodejs-pool/lib/apiInterfaces.js:65:3                                                                                                                 
    at IncomingMessage.<anonymous> (/root/cryptonote-nodejs-pool/lib/apiInterfaces.js:41:5)
    at IncomingMessage.emit (events.js:412:35)                                        
    at endReadableNT (internal/streams/readable.js:1333:12)                                                                                                                 
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Changing the async version to [email protected] fixes this issues. It's either this solution or fix the code for [email protected] support.

@dvandal dvandal merged commit 97b4628 into dvandal:master Jan 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants