Skip to content

Commit

Permalink
Process code delegation in parallel if there are more that one
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio Di Fabio <[email protected]>
  • Loading branch information
fab-10 committed Dec 13, 2024
1 parent fac1741 commit 4da8c82
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4da8c82

Please sign in to comment.