Skip to content

Clamp unsafe next outbound HTLC limit#4610

Draft
joostjager wants to merge 1 commit into
lightningdevkit:mainfrom
joostjager:fuzz-next-htlc-clamp
Draft

Clamp unsafe next outbound HTLC limit#4610
joostjager wants to merge 1 commit into
lightningdevkit:mainfrom
joostjager:fuzz-next-htlc-clamp

Conversation

@joostjager
Copy link
Copy Markdown
Contributor

Before reporting a next outbound HTLC limit, simulate adding that HTLC to the next remote commitment. If that simulation fails or would drop the holder below the selected channel reserve, report zero capacity instead.

Temporary change in anticipation of #4574

Before reporting a next outbound HTLC limit, simulate adding that
HTLC to the next remote commitment. If that simulation fails or would
drop the holder below the selected channel reserve, report zero
capacity instead.
@ldk-reviews-bot
Copy link
Copy Markdown

👋 Hi! I see this is a draft PR.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.38%. Comparing base (8882edd) to head (dfd6266).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4610      +/-   ##
==========================================
+ Coverage   86.12%   86.38%   +0.26%     
==========================================
  Files         157      158       +1     
  Lines      108824   108988     +164     
  Branches   108824   108988     +164     
==========================================
+ Hits        93721    94153     +432     
+ Misses      12487    12295     -192     
+ Partials     2616     2540      -76     
Flag Coverage Δ
fuzzing-fake-hashes 5.10% <0.00%> (?)
fuzzing-real-hashes 22.79% <100.00%> (?)
tests 86.11% <76.92%> (-0.01%) ⬇️

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.

2 participants