Skip to content

Conversation

@matkt
Copy link
Contributor

@matkt matkt commented Jul 13, 2021

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:

  • Unmined
    gasPrice (for Legacy transaction)
    maxFeeCapPerGas (for 1559 transaction)
  • Mined
    effectiveGas (for 1559 transaction)
    gasPrice (for Legacy transaction)

Fixed Issue(s)

Changelog

@garyschulte
Copy link
Contributor

Reminder to revisit json-rpc effectiveGas/gasPrice fields in light of ethereum/execution-specs#251

@matkt matkt force-pushed the feature/gas-price-1559-trx branch from 714d260 to ae35755 Compare August 19, 2021 14:27
Signed-off-by: Karim TAAM <[email protected]>
@matkt matkt force-pushed the feature/gas-price-1559-trx branch from 6ef1587 to 9c1d29e Compare August 19, 2021 14:35
@matkt matkt added doc-change-required Indicates an issue or PR that requires doc to be updated documentation Improvements or additions to documentation labels Aug 19, 2021
Copy link
Contributor

@garyschulte garyschulte left a 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

assertThat(tcr.getGasPrice()).isNull();
assertThat(tcr.getGasPrice()).isNotEmpty();
assertThat(tcr.getGasPrice())
.isEqualTo(Quantity.create(transaction.getEffectivePriorityFeePerGas(Optional.of(7L))));
Copy link
Contributor

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

Copy link
Contributor

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@matkt matkt enabled auto-merge (squash) August 26, 2021 15:33
@matkt matkt merged commit 9b3c734 into hyperledger:main Aug 26, 2021
@bgravenorst
Copy link
Contributor

@bgravenorst bgravenorst removed doc-change-required Indicates an issue or PR that requires doc to be updated documentation Improvements or additions to documentation labels Mar 4, 2022
@matkt matkt deleted the feature/gas-price-1559-trx branch March 11, 2022 08:10
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants