-
Notifications
You must be signed in to change notification settings - Fork 385
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
Quick #3010 followups #3311
Quick #3010 followups #3311
Conversation
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
LGTM less the typo, though |
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 mod typo! 🚀
`creates_and_pays_for_offer_with_retry` intends to check that we re-send a BOLT 12 `invoice_request` in response to a `message_received` call, but doesn't actually test that there were no messages in the outbound buffer after the initial send, which we do here.
While `message_received` purports to be called on every message, prior to the message, doing so on `Init` messages means we have to call `message_received` while holding the per-peer mutex, which can cause some lock contention. Instead, here, we call `message_received` after processing `Init` messages (which is probably more useful anyway - the peer isn't really "connected" until we've processed the `Init` messages), allowing us to call it unlocked.
dd9407b
to
d156b2e
Compare
Fixed, sorry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3311 +/- ##
==========================================
+ Coverage 89.63% 91.17% +1.53%
==========================================
Files 126 126
Lines 102383 114710 +12327
Branches 102383 114710 +12327
==========================================
+ Hits 91776 104588 +12812
+ Misses 7877 7560 -317
+ Partials 2730 2562 -168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pretty simple and three people have looked at it so just landing. |
Few minor things I noticed in the second-pass review.