Skip to content

Commit

Permalink
Add sleep interval before continue
Browse files Browse the repository at this point in the history
  • Loading branch information
fchirica authored Jul 3, 2024
1 parent 7bf82a5 commit 5049b66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chia/full_node/full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2800,6 +2800,7 @@ async def broadcast_uncompact_blocks(

if self._server is None:
self.log.info("Not broadcasting uncompact blocks, no server found")
await asyncio.sleep(uncompact_interval_scan)
continue
connected_timelords = self.server.get_connections(NodeType.TIMELORD)

Expand Down Expand Up @@ -2882,8 +2883,10 @@ async def broadcast_uncompact_blocks(
broadcast_list_chunks.append(broadcast_list[index : index + target_uncompact_proofs])
if len(broadcast_list_chunks) == 0:
self.log.info("Did not find any uncompact blocks.")
await asyncio.sleep(uncompact_interval_scan)
continue
if self.sync_store.get_sync_mode() or self.sync_store.get_long_sync():
await asyncio.sleep(uncompact_interval_scan)
continue
if self._server is not None:
self.log.info(f"Broadcasting {len(broadcast_list)} items to the bluebox")
Expand Down

0 comments on commit 5049b66

Please sign in to comment.