Skip to content

Conversation

@gacevicljubisa
Copy link
Member

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Previously, when a legacy gasPrice was provided, both gasFeeCap and
gasTipCap were set to gasPrice, causing excessive priority fees
(gasPrice - baseFee overpayment).

Now correctly maps:

  • gasFeeCap = gasPrice (preserves user's total ceiling)
  • gasTipCap = gasPrice - baseFee (actual realizable tip)

Also adds improved error handling for edge cases.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

@gacevicljubisa gacevicljubisa changed the title fix(transaction): improve legacy gasPrice to EIP-1559 dynamic fee map… fix(transaction): improve legacy gasPrice to EIP-1559 dynamic fee" Sep 24, 2025
@gacevicljubisa gacevicljubisa changed the title fix(transaction): improve legacy gasPrice to EIP-1559 dynamic fee" fix(transaction): improve legacy gasPrice to EIP-1559 dynamic fee Sep 24, 2025
@gacevicljubisa
Copy link
Member Author

Example how to test:

curl -XPOST -H "Gas-Price:6000000" localhost:1633/stamps/870000000/17

@bcsorvasi bcsorvasi added this to the v2.7.0 milestone Oct 7, 2025
@bcsorvasi bcsorvasi added the bug Something isn't working label Oct 7, 2025
@gacevicljubisa gacevicljubisa merged commit dbf8c5e into master Nov 3, 2025
20 of 22 checks passed
@gacevicljubisa gacevicljubisa deleted the fix/legacy-gasprice-eip1559 branch November 3, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants