Skip to content

Commit

Permalink
add todo for pre-emptive block/blobs pull
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 6, 2023
1 parent fcbbf02 commit 3fd6b2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/beacon-node/src/network/processor/gossipHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ export function getGossipHandlers(modules: ValidatorFnsModules, options: GossipH
);
if (blockInput !== null) {
handleValidBeaconBlock(blockInput, peerIdStr, seenTimestampSec);
} else {
// TODO DENEB:
//
// If block + blobs not fully recieved in the slot within some deadline, we should trigger block/blob
// pull using req/resp by root pre-emptively even though it will be trigged on seeing any block/blob
// gossip on next slot via missing parent checks
}
},

Expand All @@ -265,6 +271,12 @@ export function getGossipHandlers(modules: ValidatorFnsModules, options: GossipH
const blockInput = await validateBeaconBlob(signedBlob, serializedData, topic.index, peerIdStr, seenTimestampSec);
if (blockInput !== null) {
handleValidBeaconBlock(blockInput, peerIdStr, seenTimestampSec);
} else {
// TODO DENEB:
//
// If block + blobs not fully recieved in the slot within some deadline, we should trigger block/blob
// pull using req/resp by root pre-emptively even though it will be trigged on seeing any block/blob
// gossip on next slot via missing parent checks
}
},

Expand Down

0 comments on commit 3fd6b2f

Please sign in to comment.