Module gas_oracle
Available on crate feature
rpc
only.Expand description
An implementation of the eth gas price oracle, used for providing gas price estimates based on previous blocks.
Structs§
- Effective
TipLru Cache - Wrapper struct for
LruMap
- GasCap
- The wrapper type for gas limit
- GasPrice
Oracle - Calculates a gas price depending on recent blocks.
- GasPrice
Oracle Config - Settings for the
GasPriceOracle
- GasPrice
Oracle Result - Stores the last result that the oracle returned
Constants§
- RPC_
DEFAULT_ GAS_ CAP - The default gas limit for
eth_call
and adjacent calls. SeeRPC_DEFAULT_GAS_CAP
.