-
Notifications
You must be signed in to change notification settings - Fork 992
update RPC methods : fill gasPrice for post london 1559 transaction #2535
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
Conversation
Signed-off-by: Karim TAAM <[email protected]>
|
Reminder to revisit json-rpc effectiveGas/gasPrice fields in light of ethereum/execution-specs#251 |
714d260 to
ae35755
Compare
Signed-off-by: Karim TAAM <[email protected]>
6ef1587 to
9c1d29e
Compare
garyschulte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments about effectiveGas vs effectivePriorityFee
...va/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/TransactionCompleteResult.java
Outdated
Show resolved
Hide resolved
...reum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Karim TAAM <[email protected]>
| assertThat(tcr.getGasPrice()).isNull(); | ||
| assertThat(tcr.getGasPrice()).isNotEmpty(); | ||
| assertThat(tcr.getGasPrice()) | ||
| .isEqualTo(Quantity.create(transaction.getEffectivePriorityFeePerGas(Optional.of(7L)))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is why the unit test failure
Signed-off-by: Karim TAAM <[email protected]>
garyschulte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
…yperledger#2535) Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM [email protected]
PR description
After london for transactions returned on the rpc, we need to fill the gasPrice field as follows:
gasPrice (for Legacy transaction)
maxFeeCapPerGas (for 1559 transaction)
effectiveGas (for 1559 transaction)
gasPrice (for Legacy transaction)
Fixed Issue(s)
Changelog