Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/mem/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl InMemoryBlockStates {
}

// enforce on disk limit and purge the oldest state cached on disk
while !self.is_memory_only() && self.oldest_on_disk.len() >= self.max_on_disk_limit {
while !self.is_memory_only() && self.oldest_on_disk.len() > self.max_on_disk_limit {
// evict the oldest block
if let Some(hash) = self.oldest_on_disk.pop_front() {
self.on_disk_states.remove(&hash);
Expand Down