dont cache transaction queries so that to_block is None

This commit is contained in:
Bryan Stitt 2023-10-20 12:29:55 -07:00
parent 2019888957
commit c507cc89d3

@ -426,27 +426,13 @@ impl CacheMode {
cache_errors: true,
})
}
"eth_getTransactionByHash" => {
// TODO: not sure how best to look these up
// try full nodes first. retry will use archive
Ok(CacheMode::Standard {
block: head_block.into(),
cache_errors: true,
})
}
"eth_getTransactionByBlockHashAndIndex" => {
// TODO: check a Cache of recent hashes
// try full nodes first. retry will use archive
Ok(CacheMode::SuccessForever)
}
"eth_getTransactionReceipt" => {
// TODO: not sure how best to look these up
// try full nodes first. retry will use archive
Ok(CacheMode::Standard {
block: head_block.into(),
cache_errors: true,
})
}
"eth_getTransactionByHash" => Ok(CacheMode::Never),
"eth_getTransactionReceipt" => Ok(CacheMode::Never),
"eth_getUncleByBlockHashAndIndex" => {
// TODO: check a Cache of recent hashes
// try full nodes first. retry will use archive