Skip to content

Commit

Permalink
make engineGetBlobs optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Oct 2, 2024
1 parent caade1d commit 58bbaa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public int getVersion() {
return 1;
}

@Override
public boolean isOptional() {
return true;
}

@Override
public SafeFuture<List<BlobAndProof>> execute(final JsonRpcRequestParams params) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void setUp() {
@Test
public void shouldReturnExpectedNameAndVersion() {
assertThat(jsonRpcMethod.getName()).isEqualTo("engine_getBlobs");
assertThat(jsonRpcMethod.isOptional()).isTrue();
assertThat(jsonRpcMethod.getVersion()).isEqualTo(1);
assertThat(jsonRpcMethod.getVersionedName()).isEqualTo("engine_getBlobsV1");
}
Expand Down

0 comments on commit 58bbaa8

Please sign in to comment.