-
Notifications
You must be signed in to change notification settings - Fork 424
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
Monero v15 compatibility: "Failed to parse block" in convert_blob() after hardfork. #496
Comments
Can you give this a try? https://github.com/j-berman/node-cryptonote-util/commits/hf-15 Should be everything needed but haven't tested it yet. If you've got instructions on how to set up a private testnet with |
Hey, thanks for this. I've tried building it but I'm getting these 2 errors, the second one being repeated a few of times:
I'm attaching the entire output. I also tried running the following commands in clean instances with ubuntu bionic and ubuntu focal to discard it had anything to do with my outdated environment, and although the warnings may differ, the errors are still the same:
Regarding the private testnet, I first synced up the testnet blockchain. Then ran: Then ran monerod like this: And then started mining on the pool to see how it would behave before and after the fork. I'm sorry I cannot give you precise instruction on how to set up nodejs-pool other than what's in the README. As I mentioned before I'm running my own fork based on another "first-generation" pool software: zone117x/node-cryptonote-pool, but that one is pretty outdated. That being said, I'm more than happy to keep testing and giving feedback. If you can build it with |
Sorry about that -- it's building now. Will work on setting up a private testnet on my end too. |
Thank you very much! I can verify it works now, before and after the fork! |
Thanks for the PR, and testing osensei, I've verified this patch works and has been applied back into the main repo. |
This actually belongs to https://github.com/Snipa22/node-cryptonote-util/ , which is the module this pool software is using, but since issue reporting seems to be disabled on that repo, I'm opening it here.
Although I'm running my own pool code based originally on the old zone117x/node-cryptonote-pool software, I've found this problem with both https://github.com/Snipa22/node-cryptonote-util and https://github.com/MoneroOcean/node-cryptoforknote-util, so I'm pretty sure this pool software will also face the same problem.
I've been doing some tests on a private testnet to ensure everything will work after the v15 fork.
As soon as the hardfork takes place, convert_blob() will break with the error message "Failed to parse block".
Although there's no PoW change on v15, it is my understanding that the block template is changing to include the new feature "view tags" (and maybe something else) and this might be breaking things.
I've already reported it on MoneroOcean's repo and some work is being done on it: MoneroOcean/node-cryptoforknote-util#19
Sadly, I can't test the changes due to unmet dependencies in my environment.
MoneroOcean's fork includes a lot of code related to other currencies that has been added over the past few years. I would be grateful if someone could backport the needed changes to https://github.com/Snipa22/node-cryptonote-util/tree/xmr-Nan-2.0 to keep it simple without new dependencies, and hopefully be able to build it in my current environment.
Let me know if there's anything I can help you with.
The text was updated successfully, but these errors were encountered: