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

R4R: Add Fee & Gas Spec #3241

Merged
merged 14 commits into from
Jan 24, 2019
1 change: 1 addition & 0 deletions docs/spec/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ This module will be used in the Cosmos Hub.
1. [AccountKeeper](keepers.md#account-keeper)
1. **[Handlers](handlers.md)**
1. [Ante Handler](handlers.md#ante-handler)
1. **[Minimum Fees](min_fee.md)**
15 changes: 15 additions & 0 deletions docs/spec/auth/min_fee.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Minimum Fees specifications

Fees serve two purposes for an operator of the network.

Fees limit the growth of the state stored by every full node and the allows for a general purpose for censorship of transactions of little economic value. Fees are best suited as an antispam mechanism where validators are disinterested in the use of the network and identities of users.

Node operators should set minimum fees and unit costs of gas in each token denomination they wish to support like.
zmanian marked this conversation as resolved.
Show resolved Hide resolved

`--minimum-fees=1steak,5photinos --gas_unit_cost=0.0001`

When adding transactions to mempool or gossipping transactions, the transactions fee should be check to see if the provided fee equals or exceeds any of the min fee demoninations provided in the configurations.

Tendermint does not currently provide fee based mempool prioritization and fee based mempool filtering is local to node and not part of consensus.

Because the market value for tokens will fluctuate, validators are expected to dynamically adjust the min_fees to a level the encourage use of the network.