Skip to content

Commit

Permalink
refactor blobs by range
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdi-aouadi committed Nov 4, 2024
1 parent f917d32 commit 1085e70
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ public void onIncomingMessage(
final SpecMilestone latestMilestoneRequested =
spec.getForkSchedule().getSpecMilestoneAtSlot(endSlot);
final MiscHelpers miscHelpers = spec.forMilestone(latestMilestoneRequested).miscHelpers();
final int maxRequestBlobSidecars = miscHelpers.getMaxRequestBlobSidecars();
final int maxBlobsPerBlock = miscHelpers.getMaxBlobsPerBlock();
final long requestedCount = calculateRequestedCount(message, maxBlobsPerBlock);
final long requestedCount = calculateRequestedCount(message, miscHelpers.getMaxBlobsPerBlock());

final Optional<RequestApproval> blobSidecarsRequestApproval =
peer.approveBlobSidecarsRequest(callback, requestedCount);
Expand Down Expand Up @@ -169,7 +167,7 @@ public void onIncomingMessage(
} else {
canonicalHotRoots = ImmutableSortedMap.of();
}

final int maxRequestBlobSidecars = miscHelpers.getMaxRequestBlobSidecars();
final RequestState initialState =
new RequestState(
callback,
Expand Down

0 comments on commit 1085e70

Please sign in to comment.