-
Notifications
You must be signed in to change notification settings - Fork 1.8k
deploy contract example broken with Quorum / Geth #898
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
Comments
Quorom sets a higher You can try adding the geth_poa_middleware to the middleware stack, which moves w3 = Web3(HTTPProvider('http://localhost:22000'))
from web3.middleware import geth_poa_middleware
# inject the poa compatibility middleware to the innermost layer
w3.middleware_stack.inject(geth_poa_middleware, layer=0) Have a look at http://web3py.readthedocs.io/en/latest/middleware.html#geth-style-proof-of-authority |
Feel free to ask any questions in this issue, but I am closing it as there is no web3 bug. |
@drandreaskrueger which web3 version are you using. I'm worried that the change I added in #756 is not working. It was suppose to give you a helpful error message whenever |
From the issue, they're using |
Oops, I did not read the entire issue. Usually the web3 version is added at the start of the issue!
nice use of the neutral gender! 😆 |
Fantastic, thank you all very much. Yes, @dylanjw - this solves it - the error message disappears. |
true, @carver. However, anyone who wants to deploy contracts to quorum would encounter the same issue, right? |
yes, because of previous version issues I had decided to fix all dependencies to definitive versions. with this now, I have increased to 4.3.0 ...
yes I see that now, when running the previous code:
nice one, @voith . Thanks. |
yes, the "quorum" (geth fork) I am running is PoA, and it did show that problem. however, the "energy web" (parity fork) is also PoA - however it did not show the same problem. See chapter "Good" in OP. |
@drandreaskrueger You'll see the error message If and only if length of |
It's |
summary:
Your web3.py contract-deployment-example (or latest) does work fine with
TestRPCProvider()
and with(the Parity fork) Energy Web
; but the example code does not work with(the Geth fork) Quorum 2.0.2
.Error:
Good
This is similar to #808 but different. With the bugfix of issue 808, I could get it running on
Web3.TestRPCProvider()
AND on theParity fork "Energy Web"
. All good there. No errors:Bad
However now I am trying the Geth-fork
Quorum
, and the same Python code results in an error message:Versions:
see above
The code which produced the error:
deployContract_example_web3.py
The full output of the error:
See above
What type of node you were connecting to.
Quorum. A fork of Geth.
Easiest way to have Quorum running is in vagrant virtualbox:
step 1 https://github.com/jpmorganchase/quorum-examples#vagrant-usage
step 2 https://github.com/jpmorganchase/quorum-examples/blob/master/examples/7nodes/README.md#7-nodes
How can it be fixed?
Is this caused by a web3.py ?
Is this caused by an again wrong example script?
Is this caused by Quorum?
I don't know.
The text was updated successfully, but these errors were encountered: