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

v2.0: fix: ensure vote packets can be retried (backport of #2605) #2612

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 15, 2024

Problem

Retryable vote packets are not retried so any votes received at the end of a block won't ever get processed by the current leader leading to higher voting latency

This is because when we try to reinsert retryable vote tx packets, the reinserted vote tx's will have timestamps equal to but not greater than the latest stored vote tx's timestamp. So the "taken" vote packet never gets replenished.

Summary of Changes

Allow replacing existing latest votes when the latest vote is "taken" and the slot and timestamps are equivalent to the replaced vote.

Fixes #


This is an automatic backport of pull request #2605 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner August 15, 2024 14:52
@sakridge
Copy link

Are there any results with this change on a test cluster?

@t-nelson
Copy link

Or put another way, with ~6wks before we intend to take 2.0 to mb, how will this change's efficacy be validated on testnet?

@jstarry
Copy link

jstarry commented Aug 16, 2024

Haven't tested on a test cluster, I think testing for a few weeks on testnet is both sufficient and safe given the nature of the bug and this fix. @AshwinSekar has been tracking vote latency in #1851 and we can track the impact with those same metrics. This is a clear bug that should be patched soon before TVC is enabled

@jstarry jstarry merged commit 6f63e45 into v2.0 Aug 17, 2024
39 checks passed
@jstarry jstarry deleted the mergify/bp/v2.0/pr-2605 branch August 17, 2024 02:49
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.

4 participants