Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Publish the v2 reference-timestamp symlink - #109

Open
vincenzopalazzo wants to merge 1 commit into
lightningdevkit:mainfrom
vincenzopalazzo:fix-v2-dummy-symlink
Open

vincenzopalazzo wants to merge 1 commit into
lightningdevkit:mainfrom
vincenzopalazzo:fix-v2-dummy-symlink

Conversation

@vincenzopalazzo

Copy link
Copy Markdown
Member

Fixes #108.

A v2 client stores the timestamp in the snapshot header and requests /snapshot/v2/<that timestamp> next. serialize_delta rounds that value to reference_timestamp, and the empty delta for that timestamp is what keeps the follow-up from 404ing.

The empty file was already written for both versions. Its public symlink was created once, outside the version loop, and only in the v1 directory:

symlinks/{reference_timestamp}.bin -> ../snapshots/empty_delta.lngossip

There was no symlinks/v2/{reference_timestamp}.bin. The real delta links already use (suffix, path_to_root) for both versions (dc32c3147). This applies the same pair to the dummy symlink, so v2 resolves to ../../snapshots/v2/empty_delta.lngossip.

test_full_snapshot_persistence now reads that v2 symlink and applies it. It stays an empty graph.

Related: lightningdevkit/ldk-server#201

v2 clients persist the snapshot header and request that timestamp next.
The empty delta was written for both versions, but its public symlink
was created only in the v1 directory, so the v2 follow-up was HTTP 404.

Fixes lightningdevkit#108
@ldk-reviews-bot

ldk-reviews-bot commented Oct 6, 2026 •

Copy link
Copy Markdown

I've assigned @TheBlueMatt 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2 clients 404 after a successful sync: reference-timestamp symlink is v1-only

2 participants