Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move storage to new BlobSidecar #7737

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

zilm13
Copy link
Contributor

@zilm13 zilm13 commented Nov 20, 2023

PR Description

Part of #7654

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@@ -76,7 +76,7 @@
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
final List<UInt64> indices = request.getQueryParameterList(BLOB_INDICES_PARAMETER);
final SafeFuture<Optional<List<BlobSidecarOld>>> future =
chainDataProvider.getBlobSidecars(request.getPathParameter(PARAMETER_BLOCK_ID), indices);
chainDataProvider.getBlobSidecarsOld(request.getPathParameter(PARAMETER_BLOCK_ID), indices);

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
ChainDataProvider.getBlobSidecarsOld
should be avoided because it has been deprecated.
@@ -59,7 +59,7 @@
void shouldReturnAllBlobSidecarsAtSlot() throws JsonProcessingException {
final List<BlobSidecarOld> nonCanonicalBlobSidecars =
dataStructureUtil.randomBlobSidecarsOld(4);
when(chainDataProvider.getAllBlobSidecarsAtSlot(eq(UInt64.ONE), eq(indices)))
when(chainDataProvider.getAllBlobSidecarsAtSlotOld(eq(UInt64.ONE), eq(indices)))

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
ChainDataProvider.getAllBlobSidecarsAtSlotOld
should be avoided because it has been deprecated.
Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. just one thing

final Eth2Peer peer, final UInt64 from, final UInt64 count)
throws InterruptedException, ExecutionException, TimeoutException {
final List<BlobSidecar> blobSidecars = new ArrayList<>();
waitFor(
peer.requestBlobSidecarsByRange(from, count, RpcResponseListener.from(blobSidecars::add)));
waitFor(() -> assertThat(peer.getOutstandingRequests()).isEqualTo(0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it ok to remove this waitFor?

@zilm13
Copy link
Contributor Author

zilm13 commented Nov 21, 2023

@tbenr great catch. Accidentally removed with repack removing, checking other places now.

@zilm13
Copy link
Contributor Author

zilm13 commented Nov 21, 2023

Looks good now, merging

@zilm13 zilm13 merged commit 5fbbf6a into Consensys:master Nov 21, 2023
15 checks passed
@zilm13 zilm13 deleted the new-blobsidecar-storage branch November 21, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants