update comment

This commit is contained in:
Youngjoon Lee 2025-04-07 23:43:20 +09:00
parent 162774f416
commit b3fa10e600
No known key found for this signature in database
GPG Key ID: 303963A54A81DD4D

View File

@ -18,11 +18,10 @@ def sync(local: Follower, peers: list[Follower], checkpoint: LedgerState | None
block_fetcher = BlockFetcher(peers)
# If the checkpoint is provided, backfill the checkpoint chain first
# before starting the sync process from the checkpoint block.
# If the backfilling fails, it means that the checkpoint chain is invalid.
# It is recommended to restart the sync process with a different checkpoint
# or without a checkpoint.
# If the checkpoint is provided, start backfilling the checkpoint chain in the background.
# But for simplicity, we do it in the foreground here.
# If the backfilling fails, it means that the checkpoint chain is invalid,
# and the sync process should be cancelled.
if checkpoint:
backfill_fork(local, checkpoint.block, block_fetcher)