Skip to content
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

validate block slot not from future in gossip #1563

Merged
merged 3 commits into from
Jan 10, 2020
Merged

Conversation

djrtwo
Copy link
Contributor

@djrtwo djrtwo commented Jan 10, 2020

  • Add condition to beacon_block gossip channel to prevent blocks from be gossiped from the future.
  • add MAXIMUM_GOSSIP_CLOCK_DISPARITY to allow for some assumed clock disparity when gossiping messages
  • fix voluntary exit gossip to be wrt SignedVoluntaryExit (rather than VoluntaryExit)

Discussion:

  • Could make the condition more strict with a minimum acceptable slot time wrt latest finalized (i.e. compute_slot_at_epoch(latest_finalized_epoch) < block.slot <= current_slot)

@djrtwo djrtwo requested a review from protolambda January 10, 2020 00:43
@djrtwo djrtwo changed the title [WIP] validate block slot not from future in gossip validate block slot not from future in gossip Jan 10, 2020
@djrtwo djrtwo force-pushed the p2p-validate-block-slot branch 3 times, most recently from 9588d3d to aecfa5e Compare January 10, 2020 14:20
specs/networking/p2p-interface.md Show resolved Hide resolved
specs/networking/p2p-interface.md Outdated Show resolved Hide resolved
specs/networking/p2p-interface.md Outdated Show resolved Hide resolved
@djrtwo djrtwo force-pushed the p2p-validate-block-slot branch from 8ab0852 to 5e96c08 Compare January 10, 2020 14:28
@djrtwo djrtwo merged commit 25ea557 into dev Jan 10, 2020
@djrtwo djrtwo deleted the p2p-validate-block-slot branch January 10, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants