reth::rpc::builder::constants::gas_oracle

Constant ESTIMATE_GAS_ERROR_RATIO

Source
pub const ESTIMATE_GAS_ERROR_RATIO: f64 = 0.015; // 0.014999999999999999f64
Expand description

Allowed error ratio for gas estimation Taken from Geth’s implementation in order to pass the hive tests https://github.com/ethereum/go-ethereum/blob/a5a4fa7032bb248f5a7c40f4e8df2b131c4186a4/internal/ethapi/api.go#L56