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

client/eth: Add send tx fee estimate buffer #2234

Merged
merged 1 commit into from Mar 22, 2023

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Mar 21, 2023

This adds a 20% buffer to the send tx fee estimate in order to not return an error from the send function when the base fee rises between the time the estimate is done and the ETH is sent.

Closes #2186

@martonp martonp changed the title client/eth: Add send tx fee estiamte buffer client/eth: Add send tx fee estimate buffer Mar 21, 2023
This adds a 20% buffer to the send tx fee estimate in order to not return
an error from the send function when the base fee rises between the time
the estimate is done and the ETH is sent.
@chappjc chappjc added this to the 0.6 milestone Mar 21, 2023
Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

utACK. Code reads well.

@chappjc chappjc merged commit 5de8e7d into decred:master Mar 22, 2023
5 checks passed
@chappjc chappjc added the ETH label Mar 22, 2023
@martonp martonp deleted the ethFeeEstimateBuffer branch January 20, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eth: sending full ETH balance isn't resilient to small gas price changes
3 participants