Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jan 31, 2025
1 parent 218801b commit 2d5d705
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ private BlockBlobSidecarsTracker internalOnNewBlock(
return tracker;
}

// EIP-7732 TODO: implement counting
private BlockBlobSidecarsTracker internalOnNewExecutionPayloadEnvelope(
final SignedBeaconBlock block,
final ExecutionPayloadEnvelope executionPayloadEnvelope,
Expand All @@ -609,21 +610,17 @@ private BlockBlobSidecarsTracker internalOnNewExecutionPayloadEnvelope(
slotAndBlockRoot,
newTracker -> {
newTracker.setExecutionPayloadEnvelope(block, executionPayloadEnvelope);
countBlock(remoteOrigin);
onFirstSeen(slotAndBlockRoot, remoteOrigin);
},
existingTracker -> {
if (!existingTracker.setExecutionPayloadEnvelope(block, executionPayloadEnvelope)) {
// block and execution envelope were already set
countDuplicateBlock(remoteOrigin);
return;
}

countBlock(remoteOrigin);

if (!existingTracker.isComplete()) {
// we missed the opportunity to complete the blob sidecars via local EL and RPC
// (since the block is required to be known) Let's try now
// (since the execution payload is required to be known) Let's try now
asyncRunner
.runAsync(
() ->
Expand Down

0 comments on commit 2d5d705

Please sign in to comment.