-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add block_gossip SSE event #405
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should add to changelog but looks ok to me other than that.
apis/eventstream/index.yaml
Outdated
block_gossip: | ||
description: The node has received a block (from P2P or API) that passes validation rules of the `beacon_block` topic | ||
value: | | ||
event: block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually i think this name needs to be block_gossip
@dapplion just changelog now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
**Motivation** See ethereum/beacon-APIs#405 and ethereum/beacon-APIs#349 for further details and rationale for why we want two different block events. **Description** Emit `block_gossip` SSE event when receiving a block through gossip or api that passes validation rules of the `beacon_block` topic. On the api the validation might be skipped if the block was produced locally or a different broadcast validation is requested by the client but by default it will use gossip validation rules. Closes #6470
Complements #404 to differentiate two stages of block validity.
block
: block imported on the fork-choiceon_block
handlerblock_gossip
: passes validation rules of thebeacon_block
topicSee discussion and motivation in #349