Skip to content

Commit

Permalink
Switch to 1 gwei
Browse files Browse the repository at this point in the history
  • Loading branch information
sieniven committed Jul 10, 2024
1 parent 1be6247 commit 51882b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/eth_api_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func (apii *APIImpl) runL2GasPricerForXLayer() {
// set default gas price
defaultPrice := apii.L2GasPricer.GetConfig().Default
if defaultPrice == nil || defaultPrice.Int64() <= 0 {
defaultPrice = gaspricecfg.DefaultMinimumBaseFee
defaultPrice = gaspricecfg.DefaultXLayerPrice
}
apii.gasCache.SetLatest(common.Hash{}, defaultPrice)
go apii.runL2GasPriceSuggester()
Expand Down
2 changes: 1 addition & 1 deletion eth/gasprice/gasprice.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func NewOracle(backend OracleBackend, params gaspricecfg.Config, cache Cache) *O
// For X Layer
defaultPrice := params.Default
if defaultPrice == nil || defaultPrice.Int64() <= 0 {
defaultPrice = gaspricecfg.DefaultMinimumBaseFee
defaultPrice = gaspricecfg.DefaultXLayerPrice
}
return &Oracle{
backend: backend,
Expand Down
2 changes: 1 addition & 1 deletion eth/gasprice/gaspricecfg/config_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
DefaultXLayerConfig = XLayerConfig{
Type: DefaultType,
}
DefaultMinimumBaseFee = big.NewInt(10 * params.GWei)
DefaultXLayerPrice = big.NewInt(1 * params.GWei)
)

const (
Expand Down

0 comments on commit 51882b0

Please sign in to comment.