Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

If we're doing gossip backfill to a peer, we first forward all our channel_announcements and channel_updates in SCID-order. While doing so, we don't forward any fresh channel_update messages for any channels which we haven't yet backfilled (as we'll eventually send the new update anyway, and it might get rejected without the corresponding channel_announcement).

Sadly, our comparison for this was the wrong way, so we actually only forwarded updates which were for channels we haven't yet backfilled, and dropped updates for channels we already had backfilled.

@TheBlueMatt TheBlueMatt added this to the 0.1.6 milestone Sep 22, 2025
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Sep 22, 2025

👋 I see @tankyleo was un-assigned.
If you'd like another reviewer assignment, please click here.

If we're doing gossip backfill to a peer, we first forward all our
`channel_announcement`s and `channel_update`s in SCID-order. While
doing so, we don't forward any fresh `channel_update` messages for
any channels which we haven't yet backfilled (as we'll eventually
send the new update anyway, and it might get rejected without the
corresponding `channel_announcement`).

Sadly, our comparison for this was the wrong way, so we actually
*only* forwarded updates which were for channels we haven't yet
backfilled, and dropped updates for channels we already had
backfilled.
@TheBlueMatt TheBlueMatt force-pushed the 2025-09-fix-forward-while-sync-order branch from c5e935a to edc7903 Compare September 22, 2025 18:34
@tnull tnull removed the request for review from tankyleo September 22, 2025 18:51
Copy link

codecov bot commented Sep 22, 2025

Codecov Report

❌ Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.70%. Comparing base (0d59d73) to head (edc7903).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/peer_handler.rs 97.72% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4107      +/-   ##
==========================================
+ Coverage   88.69%   88.70%   +0.01%     
==========================================
  Files         176      176              
  Lines      132859   132885      +26     
  Branches   132859   132885      +26     
==========================================
+ Hits       117836   117875      +39     
+ Misses      12336    12318      -18     
- Partials     2687     2692       +5     
Flag Coverage Δ
fuzzing 21.55% <0.00%> (ø)
tests 88.54% <97.91%> (+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.

@TheBlueMatt TheBlueMatt merged commit 6f536ec into lightningdevkit:main Sep 22, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants