mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-07 23:53:11 +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.
|
# 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.
|
# During backfilling, the fork choice rule is continuously applied.
|
||||||
|
|
||||||
suffix = find_disconnected_point(
|
suffix = find_missing_part(
|
||||||
local,
|
local,
|
||||||
block_fetcher.fetch_chain_backward(fork_tip.id(), local),
|
block_fetcher.fetch_chain_backward(fork_tip.id(), local),
|
||||||
)
|
)
|
||||||
@ -96,7 +96,7 @@ def backfill_fork(
|
|||||||
raise InvalidBlockFromBackfillFork(e, suffix[i:])
|
raise InvalidBlockFromBackfillFork(e, suffix[i:])
|
||||||
|
|
||||||
|
|
||||||
def find_disconnected_point(
|
def find_missing_part(
|
||||||
local: Follower, fork: Generator[BlockHeader, None, None]
|
local: Follower, fork: Generator[BlockHeader, None, None]
|
||||||
) -> list[BlockHeader]:
|
) -> list[BlockHeader]:
|
||||||
# Finds the point where the fork is disconnected from the local block tree,
|
# Finds the point where the fork is disconnected from the local block tree,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user