Skip to content
Snippets Groups Projects
Commit a7a6e850 authored by inso's avatar inso
Browse files

Refresh only if we need to

parent b2aa58b0
No related branches found
No related tags found
No related merge requests found
...@@ -370,7 +370,7 @@ class TxHistory(): ...@@ -370,7 +370,7 @@ class TxHistory():
block_from = min(set(blocks)) block_from = min(set(blocks))
yield from self._wait_for_previous_refresh() yield from self._wait_for_previous_refresh()
if block_from < current_block["number"]:
# Then we start a new one # Then we start a new one
logging.debug("Starts a new refresh") logging.debug("Starts a new refresh")
task = asyncio.async(self._refresh(community, block_from, current_block, received_list)) task = asyncio.async(self._refresh(community, block_from, current_block, received_list))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment