erigon-pulse/eth/gasprice/gaspricecfg/gaspricecfg.go

24 lines
449 B
Go
Raw Normal View History

package gaspricecfg
import (
"math/big"
"github.com/ledgerwatch/erigon/params"
)
var DefaultIgnorePrice = big.NewInt(2 * params.Wei)
var (
DefaultMaxPrice = big.NewInt(500 * params.GWei)
)
type Config struct {
Blocks int
Percentile int
MaxHeaderHistory int
MaxBlockHistory int
Default *big.Int `toml:",omitempty"`
MaxPrice *big.Int `toml:",omitempty"`
IgnorePrice *big.Int `toml:",omitempty"`
}