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

Enforce centralized gas prices #36

Open
haasted opened this issue Dec 4, 2020 · 1 comment
Open

Enforce centralized gas prices #36

haasted opened this issue Dec 4, 2020 · 1 comment

Comments

@haasted
Copy link
Collaborator

haasted commented Dec 4, 2020

Gas prices for the network is currently controlled by the authority account, and enforced by the standard implementation of the em-ledger software.

It's possible for a validator to run a version of the em-ledger software that ignores the gas prices set by the authority account. There is currently no penalty for this.

This behaviour can be turned into a network offense, that could lead to either jailing or slashing. Other nodes could inspect committed blocks to see if the transaction fees were enforced. It should be investigated whether Tendermint's evidence and byzantine validator mechanisms can be used.

@alpe
Copy link
Contributor

alpe commented Mar 31, 2021

As a simple solution you can have an ante handler that would reject any TX with fees < min fee as opposite to slashing. There is some ongoing discussion about dynamic min fees going on in the community. You may want to check that as well.

@haasted haasted added this to the Stargate milestone May 4, 2021
@haasted haasted removed this from the Stargate milestone Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@alpe @haasted @mdyring and others