-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TypeError: Cannot read property '0' of undefined #437
Comments
It seems to be dying in the prepare_vout function so my first guess is the blockchain you are trying to sync has some non-standard elements such as private transactions or something similar and isn't compatible with iquidus without some custom changes. Questions:
|
Thanks you for you reply. Q1- Maybe is a problem with my rpc? Q2- It justn't worked for me, setup are always on a fresh OS install. PS Edited, forgot answer Q2. |
It's a little funny to me that after all these years iquidus didn't support bitcoin properly. The oldest bitcoin transactions use a different encoding format called P2PK for some of the transaction data and iquidus was only able to handle the newer P2PKH format. I was able to whip up an update to add support for P2PK which should allow you to get past the "TypeError: Cannot read property '0' of undefined" error. Keep in mind that it will most likely take a very long time to fully sync the bitcoin blockchain with iquidus because of the sheer amount of blockchain history (I'm guessing it could take many days or weeks to finish). There is an iquidus setting called block_parallel_tasks which can dramatically speed up the sync time by using multiple threads, but it has a known side effect that has no workaround yet which causes the historical address balance data to not always be saved in the correct order, but that might be a small price to pay for getting the data synced faster. I'm not sure if or how long it will take to get the changes merged, but you can apply these changes yourself to get your copy of the explorer working with bitcoin in the meantime: #440 |
Thanks you, thanks you, thanks you so muuuuch!!! Now its working as expected! I'll say something when it finishes, maybe a few weeks or months... Not using parallel_tasks if it returns historical data errors. Q1- Is there anyway to send you a private message? As you can see me, it's my first post on github, and probably on any kind of post. |
That would definitely be appreciated if you could let us know if and when it finishes syncing so we know approximately how long it takes and to be sure there aren't any other troubles later in the sync process. Unfortunately there is no way to send private messages on github. Typically you will need to see if the person you wish to contact has left some kind of contact information on their profile that you can use to reach them. If you are asking about contacting me directly, I prefer to talk over Discord or Telegram: |
Trying to make this working on a ubuntu 18.04, also tested on 20.04 and 16.04, and also tryed on mongo 3.2, 3.6 and 4.2 with node 8, 10 and 12. In almost all of them it gives me same error, detailed on next lines. Some times it gaves other, but could solve changing node version or ubuntu. Basically it throws me this error when I use the command "node scripts/sync.js index reindex"
Seems the problem is in async.js? -Don't know npm
Any help to solve this will be apreciated, if somnone need more details, just ask and I'll post them here.
Thanks you in advance.
The text was updated successfully, but these errors were encountered: