Skip to content

mixclient: Use newest (fewest-PR) KEs to form alt sessions#3404

Merged
davecgh merged 1 commit intodecred:masterfrom
jrick:leastprs
Jul 9, 2024
Merged

mixclient: Use newest (fewest-PR) KEs to form alt sessions#3404
davecgh merged 1 commit intodecred:masterfrom
jrick:leastprs

Conversation

@jrick
Copy link
Member

@jrick jrick commented Jul 8, 2024

The alternate session forming only incrementally removes PRs from the currently considered PR set. Even if a PR by a responsive peer is known, if it was removed due to not passing the majority checks earlier, it will never be used by our peers during this epoch. With that in mind, we should only use the most recent KEs with the lowest referenced PR counts when trying to form an alternate session, as the additional PRs from earlier KEs will never be reconsidered by that KE's identity.

The alternate session forming only incrementally removes PRs from the
currently considered PR set.  Even if a PR by a responsive peer is known, if
it was removed due to not passing the majority checks earlier, it will never
be used by our peers during this epoch.  With that in mind, we should only use
the most recent KEs with the lowest referenced PR counts when trying to form
an alternate session, as the additional PRs from earlier KEs will never be
reconsidered by that KE's identity.
@davecgh davecgh added this to the 2.1.0 milestone Jul 9, 2024
@davecgh davecgh merged commit 526b425 into decred:master Jul 9, 2024
@jrick jrick deleted the leastprs branch July 9, 2024 02:05
@davecgh davecgh modified the milestones: 2.1.0, 2.0.4 Aug 28, 2024
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