-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Cannot migrate to custom blockchain since [email protected] #3957
Comments
Thanks for reporting this! Could you try upgrading to Truffle v5.3.0 to see if this release fixes the issue for you? |
Thanks for the fast reply! Unfortunately the new release doesn't fix the issue. I'm getting the same error when trying to migrate. |
Ok thanks very much @thecodingshrimp! I'll try and reproduce your error on my side and figure out what's going on. I wonder why your error message includes something about Infura... |
I think there may be some more configuration necessary...the docker-compose.yml that you listed has some absolute paths that imply that there are extra setup steps? I get an error when trying to run |
Under Did you make sure that you have I just tested it by copying the whole folder I also provide you with a zip of the directory for an easier download experience: chain.zip If the error persists, could you provide the error message so that I can provide better feedback? |
Ok I was able to get it working and reproduce your error! Thanks again for the steps. So this is kind of problematic because I'm not sure what we need to do about this at present, let me talk with some teammates. Some more research may be needed to find the proper solution for this. |
Thanks for the update! Yeah it really felt like the communication between truffle/web3 and openethereum was the problem. Since openethereum is based on parity, do you think that the issue could be that parity didn't implement EIP 155 and doesn't know how to handle the request from web3? I assume that truffle already uses different handlers for different Ethereum clients since it supports multiple clients and that there are also tests for that. But maybe the issue is that truffle treats openethereum as a geth client instead of a parity one? Is infura based on geth? Because then it would makes sense why the error message mentions infura. If thats the issue, then maybe the solution shouldn't be that bad right? Just my thoughts on this. |
No, Truffle treats all Nodes equally. They do have different behavior but share a common interface so that client computers can communicate with them (JSON RPC). I think Infura Nodes mostly run Geth? We'll have to do some more research on this like I mentioned. I'm still puzzled as to why the error message received here mentions Infura - very strange. Is it somehow interacting with Infura somehow? |
Not to my knowledge. Our chain should be local only - no connection to the outside world. We use this chain only to test our code independently. |
Ok, after doing some research I think I found the proper fix for this. It runs successfully against your docker image with OpenEthereum. I'll try to get it in next week's release! |
The fix for this should be out now, closing. |
Issue
When trying to migrate via truffle to a custom blockchain (using openethereum) I get an error saying:
Steps to Reproduce
truffle init
docker-compose up
truffle migrate
with the network configuration pointing to custom blockchain, e.g. in truffle-config.js:Expected Behavior
Successful migration of Migrations.sol
Actual Results
Environment
The text was updated successfully, but these errors were encountered: