Skip to content
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

eth: Round up bumped gas price for the replacement transactions #2126

Merged
merged 3 commits into from
Dec 7, 2021

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Dec 7, 2021

What does this pull request do? Explain your changes. (required)
Replacement transactions increase the max gas fee by 11%. Before this change, the value was rounded down, which might have resulted in rejecting the replacement transaction (because the requirement is to have at least 10% price bump).

Specific updates (required)

  • Fix applyPriceBump() function to round up instead of round down

How did you test each of these updates (required)
unit test

Does this pull request close any open issues?
N/A

Checklist:

@leszko leszko requested a review from yondonfu December 7, 2021 10:47
Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM! Just a minor comment about the CHANGELOG_PENDING entry - feel free to adjust and then merge.

@@ -22,6 +22,7 @@
- \#2110 Transparently support HTTP/2 for segment requests while allowing HTTP/1 via GODEBUG runtime flags (@yondonfu)
- \#2124 Do not retry transcoding if HTTP client closed/canceled the connection (@leszko)
- \#2122 Add the upload segment timeout to improve failing fast (@leszko)
- \#2126 Round up bumped gas price for the replacement transactions (@leszko)
Copy link
Member

Choose a reason for hiding this comment

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

This can actually go in the "General" section under "Features" since this change impacts all user types.

@leszko
Copy link
Contributor Author

leszko commented Dec 7, 2021

LGTM! Just a minor comment about the CHANGELOG_PENDING entry - feel free to adjust and then merge.

Good idea, updated!

@leszko leszko merged commit 7af7b79 into livepeer:master Dec 7, 2021
@leszko leszko deleted the fix-bump-gas-price branch December 7, 2021 15:23
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.

None yet

2 participants