-
Notifications
You must be signed in to change notification settings - Fork 293
Fix effective gas price for rpc getTransactionReceipt #4844
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
460c1a6 to
6f126d8
Compare
|
returns |
|
Hey @Frozen, can you please explain why can't we have the same behavior as Ethereum has for transactions before EIP-1559?
I've checked numerous sources and all them saying that pre-London(eip1559) transactions should have For example:
|
|
updated to return effectiveGasPrice==gasUsed if no value for effectiveGasPrice |
Thanks, I'll install this version to the testnet RPC node and verify how will it work |
|
Hey @Frozen, sorry, but I've mistakenly mentioned |
bb93067 to
06b7fc0
Compare
06b7fc0 to
1d4ef93
Compare
|
updated to return nil if value is not set |
|
Eth Receipt does not contains GasPrice field, so it's better to return nil insted of GasPrice value |
|
@Frozen, please rebase on the latest dev 🙏 |
|
@Frozen let's fix the effective gas price to 100. |
This reverts commit 1d4ef93.
2be272f to
9264887
Compare
Done |
updated to return 100 as default value |
|
Thanks @Frozen, I've installed your branch on the testnet and run regression test suite for the old transactions and now all the tests passed: |
|
Let's also merge harmony-one/harmony-test#38 after merge of this PR 🙏 |
* fixed effectiveGasPrice. * Tests for effective gas price receipt. * gas 100 gwei
* fixed effectiveGasPrice. * Tests for effective gas price receipt. * gas 100 gwei
Fixed issue with effective gas price panic. Covered wth tests.