Do not restore txs from disk in parallel to avoid blocking other threads (#5451)

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
pull/5465/head
Fabio Di Fabio 2 years ago committed by GitHub
parent 600fb1933a
commit 3b4f5e13d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java

@ -163,7 +163,6 @@ public class TransactionPool implements BlockAddedObserver {
new BufferedReader(new FileReader(saveFile, StandardCharsets.US_ASCII))) {
final IntSummaryStatistics stats =
br.lines()
.parallel()
.mapToInt(
line -> {
final boolean isLocal = line.charAt(0) == 'l';

Loading…
Cancel
Save