Skip to content

Conversation

@TheBlueMatt
Copy link
Contributor

@TheBlueMatt TheBlueMatt commented Jul 1, 2025

In cases where we only receive node details for the first time after the last-seen timestamp, we were mistakenly not including the node info at all in the snapshot. This was the most egregious for initial syncs, where we'd include no node info at all.

Luckily the fix is simple, just include a full node info sync in such cases.

Fixes #100

Copy link
Contributor

@andrei-21 andrei-21 left a comment

Choose a reason for hiding this comment

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

Indeed the v2 snapshots on mainnet have announcement infos for nodes. Also it works in my regtest setup.
Thank you.

@TheBlueMatt TheBlueMatt force-pushed the main branch 7 times, most recently from aba1602 to 07f6692 Compare July 1, 2025 20:45
@TheBlueMatt
Copy link
Contributor Author

Fixed broken test and updated the test logic to test a bit more. Will land this once it passes given no further runtime changes happened.

In cases where we only receive node details for the first time
after the last-seen timestamp, we were mistakenly not including the
node info at all in the snapshot. This was the most egregious for
initial syncs, where we'd include no node info at all.

Luckily the fix is simple, just include a full node info sync in
such cases.

Fixes lightningdevkit#100
@TheBlueMatt TheBlueMatt merged commit b8b718b into lightningdevkit:main Jul 1, 2025
3 of 4 checks passed
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.

V2 Snapshots miss information about node features

3 participants