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

politeiavoter: Add hoursprior config setting. #1542

Merged
merged 1 commit into from Oct 13, 2021

Conversation

marcopeereboom
Copy link
Member

@marcopeereboom marcopeereboom commented Oct 13, 2021

Don't be too aggressive with left over time.

During poor network connections (e.g. when using tor) failed votes stack
up over time. That combined with an aggressive end time (originally 1
hour prior to vote being complete) can lead to clustering or failed
votes towards the end.

This adds a new configuration option called --hoursprior. That value
designates the hours to subtract from the end of the voting period and
is set to a default of 12 hours. These extra hours prior to expiration
gives the user some additional margin to correct failures.

This change also fixes a uint underflow.

@lukebp
Copy link
Member

lukebp commented Oct 13, 2021

Looks good. Some documenation explaining why it uses 12 hours prior to the end of the voting period would be helpful.

@marcopeereboom marcopeereboom force-pushed the lessthan12 branch 2 times, most recently from edc78ab to 5bc80ce Compare October 13, 2021 14:41
lukebp
lukebp previously approved these changes Oct 13, 2021
Copy link
Member

@lukebp lukebp left a comment

Choose a reason for hiding this comment

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

ACK

@lukebp lukebp dismissed their stale review October 13, 2021 14:47

Additional changes are being added.

During poor network connections (e.g. when using tor) failed votes stack
up over time. That combined with an aggressive end time (originally 1
hour prior to vote being complete) can lead to clustering or failed
votes towards the end.

This adds a new configuration option called --hoursprior. That value
designates the hours to subtract from the end of the voting period and
is set to a default of 12 hours. These extra hours prior to expiration
gives the user some additional margin to correct failures.

This change also fixes a uint underflow.
Copy link
Member

@lukebp lukebp left a comment

Choose a reason for hiding this comment

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

ACK

@lukebp lukebp merged commit e91657b into decred:master Oct 13, 2021
@marcopeereboom marcopeereboom deleted the lessthan12 branch October 13, 2021 14:58
@lukebp lukebp changed the title Don't be too aggressive with left over time to vote. politeiavoter: Add hoursprior config setting. Nov 15, 2021
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.

None yet

2 participants