internal/ethapi/api: return maxFeePerGas for gasPrice for EIP-1559 txs#23345
Merged
karalabe merged 1 commit intoethereum:masterfrom Aug 10, 2021
Merged
Conversation
Member
Author
|
Turns out, $ curl http://localhost:8645 -H 'Content-Type: application/json' -d '{"method":"eth_getTransactionByHash","id":1,"jsonrpc":"2.0", "params":["0xad8ca38344e48648b322d87c64ae4c4e3d9a8c055069abe507cf1d43d3d5bdc1"]}'
{"jsonrpc":"2.0","id":1,"result":{"blockHash":null,"blockNumber":null,"from":"0xc0ffee61108b46c8b84c63df14e3a607ac981e93","gas":"0x5208","gasPrice":null,"maxFeePerGas":"0x1000000000","maxPriorityFeePerGas":"0x0","hash":"0xad8ca38344e48648b322d87c64ae4c4e3d9a8c055069abe507cf1d43d3d5bdc1","input":"0x","nonce":"0x2","to":"0xc0ffee61108b46c8b84c63df14e3a607ac981e93","transactionIndex":null,"value":"0x0","type":"0x2","accessList":[],"chainId":"0x5","v":"0x1","r":"0x8d404089a6a6394f4095b33faac73e7cc32b23527c35a976a56b56fca29d6eeb","s":"0x4d26600698e6c81e3e9f2dcc4645d9b142b42328eec4ee50b411c6ac00b18d8d"}} |
rjl493456442
approved these changes
Aug 9, 2021
karalabe
reviewed
Aug 10, 2021
atif-konasl
pushed a commit
to frozeman/pandora-execution-engine
that referenced
this pull request
Oct 15, 2021
This was referenced Sep 23, 2022
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently geth returns
0null(console converts to0) forgasPricefor pending transactions:After this change, it will return
maxFeePerGasas specified by the RPC spec:edit: I realize I included an invalid value
maxTipPerGas, but it ended up just estimating a priority fee so I don't think it affects the overall issue at all.