-
Notifications
You must be signed in to change notification settings - Fork 175
Out of gas im improvements #1
Comments
Agree with @kumavis what do you think, which makes more sense, |
Linking the custom error codes we would need to implement for that ethereum/EIPs#136 (Discussion still ongoing) |
A TransactionReceipt is an ethereum obj that is part of the consensus. I don't think we should decorate that with extra information. Though, on the other hand, when we lookup a tx, it includes the block reference, which is not part of the normal tx object.
agree |
The receipt returned over RPC is not necessarily the same as the one send over the p2p network. Though i agree we shouldn't decorate it with a lot of unrelated info. |
@frozeman
https://github.com/ethereumjs/ethereumjs-vm/blob/master/lib/runBlock.js#L117-L122 |
Sure but the RPC endpoint is not necessarily the cananonical receipt but instead a tool for Dapp devs to understand their tx execution and properly understand the e execution without much hassle. |
@frozeman oh did you mean the response from parity it looks like this:
|
For better OOG detection when using |
To clarify, users can optionally specify gas as an argument. This method should return an error when the user has specified gas and the gas amount isn't sufficient? If the user has not specified the gas amount geth uses the pending block gas limit as a limit. Should this method also return an OOG error if it runs out of gas in that case?
There are more reasons a transaction can throw. Out of gas is one of them. In the |
This issue is a reminder and discussion thread for the following improvements:
eth_call
should return an RPC error, if the call throws in the EVM (Another option would be to returnnull
instead of0x
, as of right now)eth_estimateGas
should return an RPC error if the all the gas was usedeth_getTransactionReceipt
should contain aoutOfGas
property, so that devs can see if a tx threw.Error code EIP ethereum/EIPs#136
The text was updated successfully, but these errors were encountered: