fix(anvil
): eth_gasPrice returned 1000000000
with --block-base-fee-per-gas 0
, adds new --disable-min-priority-fee
to return 0
#9049
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Closes: #9033
Solution
Prefers a simple boolean flag to disable the enforcement rather than allowing the user to pass a priority fee of 0
Adds a new flag to disable min suggested priority fee:
--disable-min-priority-fee
Now yields
0
when the--disable-min-priority-fee
is setWithout it still yields the
MIN_SUGGESTED_PRIORITY_FEE
:foundry/crates/anvil/src/eth/fees.rs
Line 36 in eb04665