Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Dec 24, 2024
1 parent 547d203 commit b43689b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public synchronized void onCompletedBlockAndBlobSidecars(

long addedBlobs =
blobSidecars.stream()
.map(
.filter(
blobSidecar -> {
final boolean isNew = blobSidecarsTracker.add(blobSidecar);
if (isNew) {
Expand All @@ -333,7 +333,6 @@ public synchronized void onCompletedBlockAndBlobSidecars(
}
return isNew;
})
.filter(Boolean::booleanValue)
.count();
totalBlobSidecars += (int) addedBlobs;
sizeGauge.set(totalBlobSidecars, GAUGE_BLOB_SIDECARS_LABEL);
Expand Down Expand Up @@ -698,14 +697,15 @@ private synchronized SafeFuture<Void> fetchMissingBlobsFromLocalEL(

for (int index = 0; index < blobAndProofs.size(); index++) {
final Optional<BlobAndProof> blobAndProof = blobAndProofs.get(index);
final BlobIdentifier blobIdentifier = missingBlobsIdentifiers.get(index);
if (blobAndProof.isEmpty()) {
LOG.trace("Blob not found on local EL: {}", missingBlobsIdentifiers.get(index));
LOG.trace("Blob not found on local EL: {}", blobIdentifier);
continue;
}

final BlobSidecar blobSidecar =
miscHelpersDeneb.constructBlobSidecarFromBlobAndProof(
missingBlobsIdentifiers.get(index),
blobIdentifier,
blobAndProof.get(),
beaconBlockBodyDeneb,
signedBeaconBlockHeader);
Expand Down

0 comments on commit b43689b

Please sign in to comment.