From c477d70f57bed6e2943095d490e2c7fbc4b3aaf4 Mon Sep 17 00:00:00 2001 From: Matilda Clerke Date: Fri, 4 Oct 2024 15:54:07 +1000 Subject: [PATCH] 7311: Change to regular HashMap Signed-off-by: Matilda Clerke --- .../besu/ethereum/eth/sync/fastsync/DownloadReceiptsStep.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 86b2f31fef..c45d36ee98 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 @@ -31,10 +31,10 @@ import org.hyperledger.besu.ethereum.eth.sync.tasks.GetReceiptsForHeadersTask; import org.hyperledger.besu.ethereum.mainnet.BodyValidator; import org.hyperledger.besu.plugin.services.MetricsSystem; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; public class DownloadReceiptsStep @@ -64,7 +64,7 @@ public class DownloadReceiptsStep .getScheduler() .scheduleSyncWorkerTask( () -> { - Map> getReceipts = new ConcurrentHashMap<>(); + Map> getReceipts = new HashMap<>(); do { GetReceiptsFromPeerTask task = new GetReceiptsFromPeerTask(headers, new BodyValidator());