Skip to content

Commit

Permalink
disable reading from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19-cw committed Nov 29, 2024
1 parent daced61 commit 89c140f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/eth/storage/stratus_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ impl Storage for StratusStorage {

let account = 'query: {
if point_in_time.is_pending() {
if let Some(account) = self.cache.get_account(address) {
return Ok(account);
};
// if let Some(account) = self.cache.get_account(address) {
// return Ok(account);
// };

tracing::debug!(storage = %label::TEMP, %address, "reading account");
let temp_account = timed(|| self.temp.read_account(address)).with(|m| {
Expand Down Expand Up @@ -200,9 +200,9 @@ impl Storage for StratusStorage {

let slot = 'query: {
if point_in_time.is_pending() {
if let Some(slot) = self.cache.get_slot(address, index) {
return Ok(slot);
};
// if let Some(slot) = self.cache.get_slot(address, index) {
// return Ok(slot);
// };

tracing::debug!(storage = %label::TEMP, %address, %index, "reading slot");
let temp_slot = timed(|| self.temp.read_slot(address, index)).with(|m| {
Expand Down

0 comments on commit 89c140f

Please sign in to comment.