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

track last beacon ts for schedule and recip separately. ensure only one beacon attempt per beaconing window #784

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

andymck
Copy link
Contributor

@andymck andymck commented Apr 4, 2024

Further tweaks associated with hip106 side effects.

With this change we now track the time a gateway last submitted a beacon separately from the beacon reciprocity timestamp. Previously we tracked a single timestamp for both purposes.

The last beacon timestamp is used to enforce the beacon schedule and is updated post verification of a received beacon. The timestamp is updated whether the beacon is valid or invalid and thus a gateway can only submit one beacon per beaconing window irrespective of the beacon being valid/invalid or rewardable/non rewardable.

The beacon reciprocity timestamp is used to enforce beacon reciprocity. This timestamp is updated post verification and only if the beacon is rendered valid and has at least one witness.

@andymck andymck marked this pull request as ready for review April 4, 2024 10:36
@andymck andymck requested review from Vagabond and bbalser April 4, 2024 12:42
Copy link
Contributor

@Vagabond Vagabond left a comment

Choose a reason for hiding this comment

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

I think this clearly separates the different beacon times we're interested in

@andymck andymck merged commit cbd5850 into main Apr 9, 2024
1 check passed
@andymck andymck deleted the andymck/one-beacon-attempt-per-window branch April 9, 2024 15:21
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.

3 participants