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

add an auto flag to mpool replace #3676

Merged
merged 2 commits into from
Sep 9, 2020
Merged

add an auto flag to mpool replace #3676

merged 2 commits into from
Sep 9, 2020

Conversation

whyrusleeping
Copy link
Member

No description provided.

if err != nil {
return fmt.Errorf("parsing gas-feecap: %w", err)
if cctx.Bool("auto") {
// msg.GasLimit = 0 // TODO: need to fix the way we estimate gas limits to account for the messages already being in the mempool
Copy link
Contributor

Choose a reason for hiding this comment

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

max(msg.GasLimit + 1, GasEstimateGasLimit)?

cli/mpool.go Outdated
return fmt.Errorf("failed to estimate gas values: %w", err)
}
msg.GasFeeCap = retm.GasFeeCap
msg.GasPremium = retm.GasPremium
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs to check if this is high enough for replace-by-fee

@magik6k magik6k merged commit 1d78ffc into master Sep 9, 2020
@magik6k magik6k deleted the feat/mpool-replace-auto branch September 9, 2020 17:31
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