Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
show warning when skipping ahead for beam sync
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Dec 5, 2019
1 parent 0e9fb80 commit 37ed1bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trinity/sync/beam/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ async def _persist_headers_if_tip_too_old(self) -> None:
if self._is_header_eligible_to_beam_sync(tip):
self._force_end_block_number = tip.block_number + 1
self.logger.info("Tip is recent enough, syncing from last synced header at %s", tip)
else:
self.logger.warning("Tip %s is too far behind to Beam Sync, skipping ahead...", tip)

await self.wait(self._persist_headers())

Expand Down

0 comments on commit 37ed1bc

Please sign in to comment.