Skip to content

Commit

Permalink
Add code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Jan 16, 2024
1 parent bb5059c commit ffeb5e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/api/src/beacon/routes/beacon/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ export type BlockHeaderResponse = {
};

export enum BroadcastValidation {
/*
NOTE: The value `none` is not part of the spec.
In case a node is configured only with the unknownBlockSync, it needs to know the unknown parent blocks on the network
to initiate the syncing process. Such cases can be covered only if we publish blocks and make sure no gossip validation
is performed on those. But this behavior is not the default.
*/
none = "none",
gossip = "gossip",
consensus = "consensus",
Expand Down

0 comments on commit ffeb5e0

Please sign in to comment.