mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-02 13:13:06 +00:00
rename fn
This commit is contained in:
parent
f3d68211e0
commit
162774f416
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user