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

Add high priority broadcast routine #1071

Closed
wants to merge 2 commits into from
Closed

Conversation

musalbas
Copy link
Member

@musalbas musalbas commented Aug 31, 2023

This PR adds a high priority broadcast routine in the v1 reactor. By implementing this as a separate routine that essentially acts as a sidecar, we attempt to avoid any invasive changes to the original mempool that may have unintended consequences that require further testing.

This creates a separate broadcast routine with a separate P2P channel that periodically every mempoolPriorityInterval, sorts the transactions, reaps mempoolPriorityBroadcastMaxBytes, and triggers a sidecar broadcast routine in all peers.

Addresses #1069

@musalbas
Copy link
Member Author

Re-opening on 0.34 in #1072

@musalbas musalbas closed this Aug 31, 2023
@musalbas musalbas deleted the musalbas/priority-broadcast branch September 1, 2023 17:21
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.

1 participant