Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
Open
Changes from 1 commit
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
Prev Previous commit
popitem updated
  • Loading branch information
ritikramuka committed Feb 25, 2022
commit 6babdb2020f075fa07b46f0f0837be28abeec6fc
2 changes: 1 addition & 1 deletion teos/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def is_full(self):
def remove_oldest_block(self):
""" Removes the oldest block from the cache."""
with self.rw_lock.gen_wlock():
block_hash, locators = self.blocks.popitem(last=False)
block_hash, locators = self.blocks.popitem()
for locator in locators:
del self.cache[locator]

Expand Down