Skip to content

Conversation

@TheBlueMatt
Copy link
Collaborator

LSPS5ServiceEvent::SendWebhookNotification's docs say to send the WebhookNotification as the HTTP request body "as JSON", which is great, but it leaves the dev to figure out how to do that. Its nice to have a helper to do that, which is trivial so we provide it here.

`LSPS5ServiceEvent::SendWebhookNotification`'s docs say to send the
`WebhookNotification` as the HTTP request body "as JSON", which is
great, but it leaves the dev to figure out how to do that. Its nice
to have a helper to do that, which is trivial so we provide it
here.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 1, 2026

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull tnull requested review from tnull and removed request for joostjager January 1, 2026 18:32
Copy link
Contributor

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one nit.

Self { method: WebhookNotificationMethod::LSPS5OnionMessageIncoming }
}

/// Encode's this notification into JSON which can be sent as the body of an HTTP request to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Encode's this notification into JSON which can be sent as the body of an HTTP request to
/// Encodes this notification into JSON which can be sent as the body of an HTTP request to

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

@codecov
Copy link

codecov bot commented Jan 1, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.54%. Comparing base (62c5849) to head (9c1fa43).

Files with missing lines Patch % Lines
lightning-liquidity/src/lsps5/msgs.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4295      +/-   ##
==========================================
- Coverage   89.38%   86.54%   -2.84%     
==========================================
  Files         180      158      -22     
  Lines      139834   101824   -38010     
  Branches   139834   101824   -38010     
==========================================
- Hits       124985    88128   -36857     
+ Misses      12262    11278     -984     
+ Partials     2587     2418     -169     
Flag Coverage Δ
fuzzing 35.21% <0.00%> (-0.01%) ⬇️
tests 85.84% <0.00%> (-2.88%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants