From 6c57a7c3d9a8200aa55a4a2e16e79506ff2ff202 Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Fri, 4 Oct 2024 16:20:23 +1000 Subject: [PATCH] 7311: Remove runtime exception again Signed-off-by: Matilda Clerke --- .../besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java index c45d36ee98..4c60ac1d19 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java @@ -85,10 +85,6 @@ public class DownloadReceiptsStep throw new IllegalStateException( "Unexpectedly got receipts for block header already populated!"); })); - } else if (getReceiptsResult.responseCode() - == PeerTaskExecutorResponseCode.NO_PEER_AVAILABLE) { - throw new RuntimeException( - "No peer available, unable to complete DownloadReceiptsStep"); } // remove all the headers we found receipts for headers.removeAll(getReceipts.keySet());