Documentation ¶
Index ¶
Constants ¶
View Source
const ( LpoAvgCount = 5 LpoMinCount = 3 LpoMaxBlocks = 20 LpoSelect = 50 LpoDefaultPrice = 20000000000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GasPriceOracle ¶ added in v1.5.0
type GasPriceOracle struct {
// contains filtered or unexported fields
}
GasPriceOracle recommends gas prices based on the content of recent blocks.
func NewGasPriceOracle ¶ added in v1.5.0
func NewGasPriceOracle(chain *core.BlockChain, db ethdb.Database, evmux *event.TypeMux, params *GpoParams) *GasPriceOracle
NewGasPriceOracle returns a new oracle.
func (*GasPriceOracle) SuggestPrice ¶ added in v1.5.0
func (self *GasPriceOracle) SuggestPrice() *big.Int
SuggestPrice returns the recommended gas price.
type LightPriceOracle ¶ added in v1.5.0
type LightPriceOracle struct {
// contains filtered or unexported fields
}
LightPriceOracle recommends gas prices based on the content of recent blocks. Suitable for both light and full clients.
func NewLightPriceOracle ¶ added in v1.5.0
func NewLightPriceOracle(backend ethapi.Backend) *LightPriceOracle
NewLightPriceOracle returns a new oracle.
func (*LightPriceOracle) SuggestPrice ¶ added in v1.5.0
SuggestPrice returns the recommended gas price.
Click to show internal directories.
Click to hide internal directories.