Allow Custom Gas Price Configurations Greater Than Default Limits #1376
+3
−3
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.
PR Description:
This PR introduces a change that allows custom gas price configurations to be set to values greater than the default price limits :
legacypool.go
)backend.go
)gasprice.go
)Problem Addressed:
Previously, when setting a gas price limit or price threshold, values greater than the default price would be overridden by the default. This PR removes that restriction, enabling users to configure values greater than the default limit.
Example:
If the default price limit is set to 25 Gwei and you want to configure the price to 30 Gwei, the updated code will now respect your configuration:
In the previous behavior, this would have been automatically reset to 25 Gwei. With this update, you can now use 30 Gwei without it being overridden by the default value.
Code Changes:
1. Core/Txpool/Legacypool (
legacypool.go
)2. Eth/Backend (
backend.go
)3. Eth/GasPrice (
gasprice.go
)Summary:
This update ensures that gas price configurations are no longer restricted to default values when set higher, allowing greater flexibility for users who need to adjust their gas price limits and thresholds.