Skip to content

Commit

Permalink
refactor: update global min gas price to new value (celestiaorg#3444)
Browse files Browse the repository at this point in the history
## Overview

updates to the new agreed upon value
  • Loading branch information
ninabarbakadze committed May 9, 2024
1 parent ce1453f commit 068aac6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion local_devnet/celestia-app/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
}
},
"minfee": {
"global_min_gas_price": "0.002000000000000000"
"global_min_gas_price": "0.000001000000000000"
},
"mint": {
"bond_denom": "utia"
Expand Down
3 changes: 1 addition & 2 deletions pkg/appconsts/v2/app_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ const (
SubtreeRootThreshold int = 64
// GlobalMinGasPrice is used by x/minfee to prevent transactions from being
// included in a block if they specify a gas price lower than this
// parameter. GlobalMinGasPrice == DefaultMinGasPrice.
GlobalMinGasPrice float64 = 0.002 // utia
GlobalMinGasPrice float64 = 0.000001 // utia
)
2 changes: 1 addition & 1 deletion specs/src/specs/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ are blocked by the `x/paramfilter` module.
| ibc.ConnectionGenesis.MaxExpectedTimePerBlock | 7500000000000 (75 seconds) | Maximum expected time per block in nanoseconds under normal operation. | True |
| ibc.Transfer.ReceiveEnabled | true | Enable receiving tokens via IBC. | True |
| ibc.Transfer.SendEnabled | true | Enable sending tokens via IBC. | True |
| minfee.GlobalMinGasPrice | 0.002 utia | All transactions must have a gas price greater than or equal to this value. | True |
| minfee.GlobalMinGasPrice | 0.000001 utia | All transactions must have a gas price greater than or equal to this value. | True |
| mint.BondDenom | utia | Denomination that is inflated and sent to the distribution module account. | False |
| mint.DisinflationRate | 0.10 (10%) | The rate at which the inflation rate decreases each year. | False |
| mint.InitialInflationRate | 0.08 (8%) | The inflation rate the network starts at. | False |
Expand Down
2 changes: 1 addition & 1 deletion test/interchain/chainspec/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var celestia = &interchaintest.ChainSpec{
Bin: "celestia-appd",
Bech32Prefix: "celestia",
Denom: "utia",
GasPrices: "0.002utia",
GasPrices: "0.000001utia",
GasAdjustment: *gasAdjustment(),
TrustingPeriod: "336hours",
Images: celestiaDockerImages(),
Expand Down
4 changes: 2 additions & 2 deletions x/minfee/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package minfee
import (
"fmt"

"github.com/celestiaorg/celestia-app/v2/pkg/appconsts"
v2 "github.com/celestiaorg/celestia-app/v2/pkg/appconsts/v2"
sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
)
Expand All @@ -18,7 +18,7 @@ var (
)

func init() {
DefaultGlobalMinGasPriceDec, err := sdk.NewDecFromStr(fmt.Sprintf("%f", appconsts.DefaultMinGasPrice))
DefaultGlobalMinGasPriceDec, err := sdk.NewDecFromStr(fmt.Sprintf("%f", v2.GlobalMinGasPrice))
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 068aac6

Please sign in to comment.