Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GPOConfig ¶
func NewGPOConfig ¶
type Oracle ¶
type Oracle struct { CurrentBlockGPs *types.SingleBlockGPs // hold the gas prices of the latest few blocks BlockGPQueue *types.BlockGPResults // contains filtered or unexported fields }
Oracle recommends gas prices based on the content of recent blocks.
func NewOracle ¶
NewOracle returns a new gasprice oracle which can recommend suitable gasprice for newly created transaction.
func (*Oracle) RecommendGP ¶
Click to show internal directories.
Click to hide internal directories.