From 215813dbc752f851308d338cac70cb869d0633d6 Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Fri, 13 Dec 2024 15:24:03 +1100 Subject: [PATCH] 7582: Remove pivot block checks when waiting for peer in FastSyncActions Signed-off-by: Matilda Clerke --- .../besu/ethereum/eth/sync/fastsync/FastSyncActions.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/FastSyncActions.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/FastSyncActions.java index a70e4d705bb..13c47b078fe 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/FastSyncActions.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/FastSyncActions.java @@ -137,10 +137,7 @@ private CompletableFuture internalDownloadPivotBlockHeader( return ethContext .getEthPeers() .waitForPeer( - (peer) -> - currentState.getPivotBlockNumber().isEmpty() - || peer.chainState().getEstimatedHeight() - >= currentState.getPivotBlockNumber().getAsLong()) + (peer) -> true) .thenCompose( unused -> currentState