cache eth_feeHistory and eth_gasPrice

This commit is contained in:
Bryan Stitt 2023-07-28 10:41:23 -07:00
parent 1185b2d0f9
commit ca92b3646c

View File

@ -230,6 +230,13 @@ impl CacheMode {
let block_param_id = match method {
"eth_call" => 1,
"eth_estimateGas" => 1,
"eth_feeHistory" => 1,
"eth_gasPrice" => {
return Ok(CacheMode::Cache {
block: head_block.into(),
cache_errors: false,
});
}
"eth_getBalance" => 1,
"eth_getBlockByHash" => {
// TODO: double check that any node can serve this