explicit eth_blockNumber

This commit is contained in:
Bryan Stitt 2023-11-21 23:21:03 -04:00
parent a279eaa67c
commit be03d6f4f0

@ -355,6 +355,11 @@ impl CacheMode {
// TODO: make sure re-orgs work properly!
Ok(Self::SuccessForever)
}
"eth_blockNumber" => Ok(Self::Standard {
block_needed: head_block.into(),
cache_block: head_block.into(),
cache_errors: true,
}),
"eth_gasPrice" => Ok(Self::Never),
"eth_getBlockByHash" => {
// TODO: double check that any node can serve this