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

Avoid reporting a node has voted during the Staking phase #269

Merged
merged 3 commits into from
Jan 6, 2022

Conversation

jordanschalm
Copy link
Member

Currently the get_node_has_voted.cdc script will return true for node N if (1) we are in the Staking phase of epoch N+1 and (2) N voted in epoch N.

When voting, a node will first check whether it has already voted. In the case that the voting LN is slightly ahead of the AN it is querying, this can cause the LN to not vote at all (it incorrectly thinks it has already submitted a vote).

@jordanschalm jordanschalm merged commit b4a009c into master Jan 6, 2022
@jordanschalm jordanschalm deleted the jordan/6056-assert-phase-in-setup-script branch January 6, 2022 16:45
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