Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

eth_gasLimit method not implemented #99

Open
4gn3s opened this issue Feb 15, 2016 · 4 comments
Open

eth_gasLimit method not implemented #99

4gn3s opened this issue Feb 15, 2016 · 4 comments
Assignees

Comments

@4gn3s
Copy link

4gn3s commented Feb 15, 2016

Hello, when using new_abi_contract from rpc_client to create a new ABIContract object, and later calling a contract method, I get the following error:

{"id":5,"jsonrpc":"2.0","error":{"code":-32601,"message":"eth_gasLimit method not implemented"}}

I'm using geth 1.3.3. as a client.
In the JSON RPC docs, eth_gasLimit is indeed not defined. I guess it was replaced with eth_getBlockByHash, which has a gasLimit field.

Maybe both calls to eth_gasLimit in rpc_client should be replaced with a call to eth_estimateGas, or with a series of two calls: eth_blockNumber followed by eth_getBlockByNumber, if you want to stick to the gas limit convention?

I will gladly contribute if one of the suggested fixes is a correct solution.

@heikoheiko
Copy link
Member

I'm using geth 1.3.3. as a client.

?

@heikoheiko
Copy link
Member

@heikoheiko
Copy link
Member

Btw: there is also this project
https://github.com/ConsenSys/ethjsonrpc

@4gn3s
Copy link
Author

4gn3s commented Feb 15, 2016

Yeah, eth_gasLimit is called in the following lines: 178 and 199.

4gn3s added a commit to 4gn3s/pyethapp that referenced this issue Feb 17, 2016
@konradkonrad konradkonrad self-assigned this Jul 1, 2016
RomanZacharia pushed a commit to RomanZacharia/pyethapp that referenced this issue Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants