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) block_fetcher = BlockFetcher(peers)
# If the checkpoint is provided, backfill the checkpoint chain first # If the checkpoint is provided, start backfilling the checkpoint chain in the background.
# before starting the sync process from the checkpoint block. # But for simplicity, we do it in the foreground here.
# If the backfilling fails, it means that the checkpoint chain is invalid. # If the backfilling fails, it means that the checkpoint chain is invalid,
# It is recommended to restart the sync process with a different checkpoint # and the sync process should be cancelled.
# or without a checkpoint.
if checkpoint: if checkpoint:
backfill_fork(local, checkpoint.block, block_fetcher) backfill_fork(local, checkpoint.block, block_fetcher)