7311: Remove runtime exception again

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
pull/7638/head
Matilda Clerke 2 months ago
parent c477d70f57
commit 6c57a7c3d9
  1. 4
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java

@ -85,10 +85,6 @@ public class DownloadReceiptsStep
throw new IllegalStateException( throw new IllegalStateException(
"Unexpectedly got receipts for block header already populated!"); "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 // remove all the headers we found receipts for
headers.removeAll(getReceipts.keySet()); headers.removeAll(getReceipts.keySet());

Loading…
Cancel
Save