diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java index b936e3ce25a..83424ae22fd 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java @@ -541,7 +541,9 @@ public List signalInvalidAndGetDependentTransactions(final Transact @Override public void signalInvalidAndRemoveDependentTransactions(final Transaction transaction) { - signalInvalidAndGetDependentTransactions(transaction).forEach(this::removeTransaction); + synchronized (lock) { + signalInvalidAndGetDependentTransactions(transaction).forEach(this::removeTransaction); + } } @Override