From e255a6ae7906219b1771b4c0c6838a358f745c7e Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Thu, 6 Mar 2025 16:18:44 +0900 Subject: [PATCH] add comment --- cryptarchia/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cryptarchia/sync.py b/cryptarchia/sync.py index 44e9cb3..ae817d2 100644 --- a/cryptarchia/sync.py +++ b/cryptarchia/sync.py @@ -16,7 +16,8 @@ def sync(local: Follower, peers: list[Follower]): # Syncs the local block tree with the peers, starting from the local tip. # This covers the case where the local tip is not on the latest honest chain anymore. - # Repeat the sync process until no peer has a tip ahead of the local tip. + # Repeat the sync process until no peer has a tip ahead of the local tip, + # because peers' tips may advance during the sync process. while True: # Fetch blocks from the peers in the range of slots from the local tip to the latest tip. # Gather orphaned blocks, which are blocks from forks that are absent in the local block tree.