explicit eth_blockNumber
This commit is contained in:
parent
a279eaa67c
commit
be03d6f4f0
|
@ -355,6 +355,11 @@ impl CacheMode {
|
||||||
// TODO: make sure re-orgs work properly!
|
// TODO: make sure re-orgs work properly!
|
||||||
Ok(Self::SuccessForever)
|
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_gasPrice" => Ok(Self::Never),
|
||||||
"eth_getBlockByHash" => {
|
"eth_getBlockByHash" => {
|
||||||
// TODO: double check that any node can serve this
|
// TODO: double check that any node can serve this
|
||||||
|
|
Loading…
Reference in New Issue