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

wire: Remove PR hashes from (get)initstate #3244

Merged
merged 1 commit into from
May 6, 2024

Conversation

jrick
Copy link
Member

@jrick jrick commented May 3, 2024

This reverts all of the initstate changes made in
b9d8d49.

The limit of 100 was too too low to be useful and cranking this value up was not a proper solution either. It also only synced pair request messages, which would cause mid-run mixes to leave stale PRs around in the mixpool until they expired.

This is handled better in newer mixpool code by requesting unknown pair request messages when they are seen in a key exchange. The mixpool records the KE as an orphan and will process it after all missing PRs have been requested and processed.

This reverts all of the initstate changes made in
b9d8d49.

The limit of 100 was too too low to be useful and cranking this value up was
not a proper solution either.  It also only synced pair request messages,
which would cause mid-run mixes to leave stale PRs around in the mixpool until
they expired.

This is handled better in newer mixpool code by requesting unknown pair
request messages when they are seen in a key exchange.  The mixpool records
the KE as an orphan and will process it after all missing PRs have been
requested and processed.
@davecgh davecgh merged commit db7785f into decred:master May 6, 2024
2 checks passed
@jrick jrick deleted the no_initstate_prs branch May 8, 2024 22:59
@davecgh davecgh added this to the 1.9.0 milestone May 9, 2024
@davecgh davecgh added the wire protocol change Discussion and pull requests regarding items that require changes to the wire protocol. label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wire protocol change Discussion and pull requests regarding items that require changes to the wire protocol.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants