-
Notifications
You must be signed in to change notification settings - Fork 384
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
PeerManager: add separate queue for gossip broadcasts #1683
PeerManager: add separate queue for gossip broadcasts #1683
Conversation
5f4e243
to
758561d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks.
758561d
to
91b113d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Can we now drop the enqueue_encoded_message utility now and only use the gossip variant?
91b113d
to
50a417d
Compare
50a417d
to
0fce80d
Compare
Codecov Report
@@ Coverage Diff @@
## main #1683 +/- ##
==========================================
- Coverage 90.91% 90.85% -0.06%
==========================================
Files 85 85
Lines 45753 45763 +10
Branches 45753 45763 +10
==========================================
- Hits 41596 41580 -16
- Misses 4157 4183 +26
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but should make commits atomic as per comment.
0fce80d
to
9b3fe9e
Compare
If you're referring to another PR in the git commit, please refer to the specific commit by commit hash, not to github - git history should stand on its own without context from github. |
Fixes a flipped bool that was introduced in 4a1ee5f
It's more accurate to name it as dropping gossip broadcasts, as it won't drop all gossip.
This allows us to better prioritize channel messages over gossip broadcasts and lays groundwork for rate limiting onion messages more simply, since they won't be competing with gossip broadcasts for space in the main message queue.
9b3fe9e
to
47e818f
Compare
This allows us to better prioritize channel messages over gossip broadcasts and lays groundwork for rate limiting onion messages more simply, since they won't be competing with gossip broadcasts in the channel message queue.
Also fixes a bug that was introduced in #1660, oops.
Lays groundwork for #1604