Skip to content

Commit

Permalink
small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Oct 20, 2023
1 parent 24deb59 commit 777f07e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ethereum/spec/src/main/java/tech/pegasys/teku/spec/Spec.java
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public SszList<Blob> 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);
}
Expand All @@ -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);
}
Expand All @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ void sendRequest_interruptBeforeInitialPayloadWritten(
verify(stream).close();
}

@SuppressWarnings("UnnecessaryAsync")
private Class<? extends Exception> executeInterrupts(
final boolean closeStream, final boolean exceedTimeout) {
Class<? extends Exception> expectedException = null;
Expand Down

0 comments on commit 777f07e

Please sign in to comment.