Skip to content

Commit e158e62

Browse files
committed
Use parallelStream for engine_getBlobsV2 proof serialisation, but not blobs
Signed-off-by: Simon Dudley <[email protected]>
1 parent 3eb4e00 commit e158e62

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
@@ -166,7 +166,7 @@ private VersionedHash[] extractVersionedHashes(final JsonRpcRequestContext reque
166166
private BlobAndProofV2 createBlobAndProofV2(final BlobProofBundle blobProofBundle) {
167167
return new BlobAndProofV2(
168168
HexUtils.toFastHex(blobProofBundle.getBlob().getData(), true),
169-
blobProofBundle.getKzgProof().stream()
169+
blobProofBundle.getKzgProof().parallelStream()
170170
.map(proof -> HexUtils.toFastHex(proof.getData(), true))
171171
.toList());
172172
}

0 commit comments

Comments
 (0)