-
Notifications
You must be signed in to change notification settings - Fork 490
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
network: handle empty wsPeer supplied to transaction handler #6195
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6195 +/- ##
==========================================
- Coverage 51.88% 51.86% -0.02%
==========================================
Files 639 639
Lines 85489 85495 +6
==========================================
- Hits 44359 44346 -13
- Misses 38320 38339 +19
Partials 2810 2810 ☔ View full report in Codecov by Sentry. |
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.
I'm generally okay with this pending questions CCE asked.
I'd probably add one additional sentence or a title tweak highlighting the problem being solved (it's a race condition that folks ran into on mainnet as I recall, just took some digging to find).
gossip or gossipSub |
bf4c30c
to
388dbc8
Compare
Summary
There is a race between pubsub new peer discovery and wsPeer registration:
Suggested fix is to use
gsPeer
temporary type good enough for tx handler.Additional fixes:
Test Plan
Added a test confirming
txTopicValidator
does not call tx handler with an empty wsPeer.