Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Reject transactions with gas price below the configured minimum #1602

Merged
merged 1 commit into from
Jun 25, 2019

Conversation

ajsutton
Copy link
Contributor

PR description

Reject transactions with a gas price below the configured minimum gas price before full validation or adding to the pending transaction pool. The check for minimum gas price is much cheaper than our other validation and transactions below that limit won't be mined so are easy targets for disposal.

Remove the setMinTransactionGasPrice from MiningCoordinator. We never implemented the JSON-RPC method to adjust the min transaction gas price at runtime and the minimum price is now need in more than just the MiningCoordinator. If/when we later add those RPC methods, we'll need to come up with a different design so the new value can be shared.

Copy link
Contributor

@AbdelStark AbdelStark left a comment

Choose a reason for hiding this comment

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

Lgtm

@ajsutton ajsutton merged commit 6d44ede into PegaSysEng:master Jun 25, 2019
@ajsutton ajsutton deleted the reject-low-gas-price-tx branch June 25, 2019 08:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants