dont cache transaction queries so that to_block is None
This commit is contained in:
parent
2019888957
commit
c507cc89d3
@ -426,27 +426,13 @@ impl CacheMode {
|
|||||||
cache_errors: true,
|
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" => {
|
"eth_getTransactionByBlockHashAndIndex" => {
|
||||||
// TODO: check a Cache of recent hashes
|
// TODO: check a Cache of recent hashes
|
||||||
// try full nodes first. retry will use archive
|
// try full nodes first. retry will use archive
|
||||||
Ok(CacheMode::SuccessForever)
|
Ok(CacheMode::SuccessForever)
|
||||||
}
|
}
|
||||||
"eth_getTransactionReceipt" => {
|
"eth_getTransactionByHash" => Ok(CacheMode::Never),
|
||||||
// TODO: not sure how best to look these up
|
"eth_getTransactionReceipt" => Ok(CacheMode::Never),
|
||||||
// try full nodes first. retry will use archive
|
|
||||||
Ok(CacheMode::Standard {
|
|
||||||
block: head_block.into(),
|
|
||||||
cache_errors: true,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
"eth_getUncleByBlockHashAndIndex" => {
|
"eth_getUncleByBlockHashAndIndex" => {
|
||||||
// TODO: check a Cache of recent hashes
|
// TODO: check a Cache of recent hashes
|
||||||
// try full nodes first. retry will use archive
|
// try full nodes first. retry will use archive
|
||||||
|
Loading…
Reference in New Issue
Block a user