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

[WIP, don't merge] outline flow of rest of the attestation aggregation #665

Closed
wants to merge 1 commit into from

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Jan 7, 2020

An existence proof of the availability of the rest of how to this within nim-beacon-chain. Obviously needs refactoring, testing, etc.

It's correct but not optimal to ask to aggregate everything and only send when there's a value to the option. That's why it's set up that way. Not good approach, but surprisingly not-terribly-wrong either.

fromNow = shortLog(fromNow),
cat = "scheduling"

await sleepAsync(fromNow)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to assume that the current time when this line is reached is exactly attestationStart.offset? What ensures that this is the case? If not, the waiting here will take us to a target time that differs from the 2/3 of the slot moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a concern, yes.

@tersec
Copy link
Contributor Author

tersec commented Jan 30, 2020

To clarify this PR's situation -- it's waiting on native libp2p to stabilize.

@tersec
Copy link
Contributor Author

tersec commented Feb 18, 2020

#122 tracks some of these native libp2p issues.

@tersec
Copy link
Contributor Author

tersec commented Feb 25, 2020

Closing in favor of upcoming PR.

@tersec tersec closed this Feb 25, 2020
@tersec tersec deleted the ame branch February 25, 2020 20:50
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.

2 participants