Skip to content

Commit

Permalink
7582: Remove pivot block checks when waiting for peer in FastSyncActions
Browse files Browse the repository at this point in the history
Signed-off-by: Matilda Clerke <[email protected]>
  • Loading branch information
Matilda-Clerke committed Dec 13, 2024
1 parent beeca44 commit 215813d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ private CompletableFuture<FastSyncState> internalDownloadPivotBlockHeader(
return ethContext
.getEthPeers()
.waitForPeer(
(peer) ->
currentState.getPivotBlockNumber().isEmpty()
|| peer.chainState().getEstimatedHeight()
>= currentState.getPivotBlockNumber().getAsLong())
(peer) -> true)
.thenCompose(
unused ->
currentState
Expand Down

0 comments on commit 215813d

Please sign in to comment.