Uh oh!
There was an error while loading. Please reload this page.
Check metadata length for bolt11 invoices - #4740
Conversation
Check that the metadata when creating a bolt11 invoice is below the bolt11 limit of 639 bytes for tagged fields.
I've assigned @valentinewallace as a reviewer! |
ldk-claude-review-bot
commented
Jun 23, 2026
No issues found. The change correctly checks payment metadata length against Minor (non-blocking) observations, not posted inline as they are style preferences:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #4740 +/- ##
==========================================
- Coverage 86.90% 86.89% -0.01%
==========================================
Files 161 161 Lines 111680 111688 +8 Branches 111680 111688 +8 ==========================================
+ Hits 97052 97054 +2 - Misses 12115 12126 +11 + Partials 2513 2508 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ldk-reviews-bot
commented
Jun 24, 2026
👋 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. |
Uh oh!
There was an error while loading. Please reload this page.
I mentioned this here
Similar to the description check, I think this length should be checked that is less than the limit for tagged fields in bolt11 invoices. Otherwise it can hit this assert during serialization.