From f3d68211e04a4346cbc7734c3259befe048a022c Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Tue, 1 Apr 2025 10:33:14 +0900 Subject: [PATCH] add comment --- cryptarchia/sync.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cryptarchia/sync.py b/cryptarchia/sync.py index fee791b..5868d86 100644 --- a/cryptarchia/sync.py +++ b/cryptarchia/sync.py @@ -99,6 +99,11 @@ def backfill_fork( def find_disconnected_point( local: Follower, fork: Generator[BlockHeader, None, None] ) -> list[BlockHeader]: + # Finds the point where the fork is disconnected from the local block tree, + # and returns the suffix of the fork from the disconnected point to the tip. + # The disconnected point may be different from the divergence point of the fork + # in the case where the fork has been partially backfilled. + suffix: list[BlockHeader] = [] for block in fork: if block.id() in local.ledger_state: