diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/CodeDelegationProcessor.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/CodeDelegationProcessor.java index 977b5031936..bcf81f6ad99 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/CodeDelegationProcessor.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/CodeDelegationProcessor.java @@ -65,9 +65,9 @@ public CodeDelegationResult process( final EVMWorldUpdater evmWorldUpdater, final Transaction transaction) { final CodeDelegationResult result = new CodeDelegationResult(); - transaction - .getCodeDelegationList() - .get() + final var codeDelegations = transaction.getCodeDelegationList().get(); + + (codeDelegations.size() == 1 ? codeDelegations.stream() : codeDelegations.parallelStream()) .forEach( codeDelegation -> processAuthorization(