From 162774f416a263d593c1458035e3c761540ca019 Mon Sep 17 00:00:00 2001 From: Youngjoon Lee <5462944+youngjoon-lee@users.noreply.github.com> Date: Tue, 1 Apr 2025 10:40:40 +0900 Subject: [PATCH] rename fn --- cryptarchia/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptarchia/sync.py b/cryptarchia/sync.py index 5868d86..630fcae 100644 --- a/cryptarchia/sync.py +++ b/cryptarchia/sync.py @@ -82,7 +82,7 @@ def backfill_fork( # Backfills a fork, which is absent in the local block tree, by fetching blocks from the peers. # During backfilling, the fork choice rule is continuously applied. - suffix = find_disconnected_point( + suffix = find_missing_part( local, block_fetcher.fetch_chain_backward(fork_tip.id(), local), ) @@ -96,7 +96,7 @@ def backfill_fork( raise InvalidBlockFromBackfillFork(e, suffix[i:]) -def find_disconnected_point( +def find_missing_part( local: Follower, fork: Generator[BlockHeader, None, None] ) -> list[BlockHeader]: # Finds the point where the fork is disconnected from the local block tree,