-
Notifications
You must be signed in to change notification settings - Fork 378
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
[minor] Add Display to Payment ID types #2492
[minor] Add Display to Payment ID types #2492
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2492 +/- ##
==========================================
- Coverage 90.59% 90.53% -0.07%
==========================================
Files 106 107 +1
Lines 56525 56923 +398
Branches 56525 56923 +398
==========================================
+ Hits 51207 51533 +326
- Misses 5318 5390 +72
☔ 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.
LGTM, except the allocations.
Feel free to squash the fixup commit down into the original commit to not have two commits back-to-back that edit the same code. |
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 after squash.
a1fcce7
to
5c63c25
Compare
5c63c25
to
ad2cd84
Compare
Rebased and reorganized commits, as suggested, to avoid touching the same code from multiple commits. Commits: add Display to PaymentHash (most frequently used), adapt logging, add Display to PaymentId and PaymentPreimage, adapt logging. |
Missed a few in
|
ad2cd84
to
4146264
Compare
Indeed, good catch! I've searched through all |
looks good! |
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
Minor convenience/housekeeping change:
Display
trait toPaymentHash
,PaymentId
,PaymentPreimage
log_bytes!()
Almost all remaining
log_bytes!
usage is forChannelId
, which is addressed in #2485 .(The
log_bytes!
macro is OK, but its usage suggests non-type-safe usage, plus it reduces readablity a bit).