Skip to content

Commit

Permalink
simplify removing peers during short sync
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 18, 2024
1 parent a19633e commit 80c0041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chia/full_node/full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,8 @@ async def short_sync_batch(self, peer: WSChiaConnection, start_height: uint32, t
raise
finally:
self.log.info(f"Added blocks {height}-{end_height}")
except (asyncio.CancelledError, Exception):
finally:
self.sync_store.batch_syncing.remove(peer.peer_node_id)
raise
self.sync_store.batch_syncing.remove(peer.peer_node_id)
return True

async def short_sync_backtrack(
Expand Down

0 comments on commit 80c0041

Please sign in to comment.