From b3fa10e6007394ca4ff4144ff58ba8e82bc4e5b0 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Mon, 7 Apr 2025 23:43:20 +0900 Subject: [PATCH] update comment --- cryptarchia/sync.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cryptarchia/sync.py b/cryptarchia/sync.py index 630fcae..323e368 100644 --- a/cryptarchia/sync.py +++ b/cryptarchia/sync.py @@ -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)