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

move attesting up from halfway to one third of the way through slots #643

Merged
merged 2 commits into from
Dec 11, 2019

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Dec 11, 2019

https://github.com/ethereum/eth2.0-specs/blob/v0.9.2/specs/validator/0_beacon-chain-validator.md#attesting says:

A validator should create and broadcast the attestation to the associated attestation subnet one-third of the way through the slot during which the validator is assigned―that is, SECONDS_PER_SLOT / 3 seconds after the start of slot.

This is somewhat part of the naive/simple attestation PR sequence along with #629 -- due to #638 beacon_node changes enough to make it worthwhile to split out changes to existing code from new modules.

The remaining timing-related change is to broadcast aggregations at 2/3 through each slot, by a similar wait-for-slot-to-start-then-schedule-2/3-through, but that's waiting for the combination of #638 and #629 to land, to avoid pointless/predictable merge conflicts.

…ove attesting up from halfway to one third of the way through slots
@tersec
Copy link
Contributor Author

tersec commented Dec 11, 2019

#497

@arnetheduck
Copy link
Member

haha, wonder if my div3 fix works :) not sure we have the right operators for durations...

@tersec
Copy link
Contributor Author

tersec commented Dec 11, 2019

haha, wonder if my div3 fix works :) not sure we have the right operators for durations...

Even if so, it'd be good to have them, so the code as suggested works.

@mratsim mratsim merged commit cb1bc6c into devel Dec 11, 2019
@delete-merged-branch delete-merged-branch bot deleted the eli branch December 11, 2019 13:02
mratsim pushed a commit that referenced this pull request Dec 18, 2019
…643)

* per honest validator and naïve/simple aggregator attestation specs, move attesting up from halfway to one third of the way through slots

* Update beacon_chain/beacon_node.nim

Co-Authored-By: Jacek Sieka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants