From 4e93fdd10faef89341c6282bd322a1b8d3b09358 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Fri, 20 Oct 2023 15:42:52 +0100 Subject: [PATCH] small nits --- .../spec/src/main/java/tech/pegasys/teku/spec/Spec.java | 7 ++++--- .../teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java index 56c0aff9e9a..25983ac1e1b 100644 --- a/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java +++ b/ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java @@ -383,7 +383,7 @@ public SszList deserializeBlobsInBlock(final Bytes serializedBlobs, final return atSlot(slot) .getSchemaDefinitions() .toVersionDeneb() - .orElseThrow(() -> new RuntimeException("Deneb milestone is required to load blobs")) + .orElseThrow(() -> new RuntimeException("Deneb milestone is required to deserialize blobs")) .getBlobsInBlockSchema() .sszDeserialize(serializedBlobs); } @@ -392,7 +392,8 @@ public BlobSidecar deserializeBlobSidecar(final Bytes serializedBlobSidecar, fin return atSlot(slot) .getSchemaDefinitions() .toVersionDeneb() - .orElseThrow(() -> new RuntimeException("Deneb milestone is required to load blob sidecar")) + .orElseThrow( + () -> new RuntimeException("Deneb milestone is required to deserialize blob sidecar")) .getBlobSidecarSchema() .sszDeserialize(serializedBlobSidecar); } @@ -405,7 +406,7 @@ public ExecutionPayloadHeader deserializeJsonExecutionPayloadHeader( .orElseThrow( () -> new RuntimeException( - "Bellatrix milestone is required to load execution payload header")) + "Bellatrix milestone is required to deserialize execution payload header")) .getExecutionPayloadHeaderSchema() .jsonDeserialize(objectMapper.createParser(jsonFile)); } diff --git a/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java b/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java index b9dea7d3f5c..909c2afa67f 100644 --- a/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java +++ b/networking/p2p/src/test/java/tech/pegasys/teku/networking/p2p/libp2p/rpc/RpcHandlerTest.java @@ -246,7 +246,6 @@ void sendRequest_interruptBeforeInitialPayloadWritten( verify(stream).close(); } - @SuppressWarnings("UnnecessaryAsync") private Class executeInterrupts( final boolean closeStream, final boolean exceedTimeout) { Class expectedException = null;