Skip to content

Commit 2585b21

Browse files
committed
engine_getBlobsV2 parallel serialization of blob data
Mitigates scalability issues since converting blob data toHexString is O(n) Signed-off-by: Simon Dudley <[email protected]>
1 parent 51c4f5e commit 2585b21

File tree

1 file changed

+1
-1
lines changed
  • ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine

1 file changed

+1
-1
lines changed

ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetBlobsV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public JsonRpcResponse syncResponse(final JsonRpcRequestContext requestContext)
145145
}
146146

147147
final List<BlobAndProofV2> results =
148-
validBundles.stream().map(this::createBlobAndProofV2).toList();
148+
validBundles.parallelStream().map(this::createBlobAndProofV2).toList();
149149

150150
hitCounter.inc();
151151
return new JsonRpcSuccessResponse(requestContext.getRequest().getId(), results);

0 commit comments

Comments
 (0)