Skip to content

Peer storage enhancements#8422

Merged
sangbida merged 2 commits into
ElementsProject:masterfrom
adi2011:peer-storage-enhancement
May 7, 2026
Merged

Peer storage enhancements#8422
sangbida merged 2 commits into
ElementsProject:masterfrom
adi2011:peer-storage-enhancement

Conversation

@adi2011
Copy link
Copy Markdown
Collaborator

@adi2011 adi2011 commented Jul 22, 2025

UX improvements and some other changes to make peer storage more efficient.

Addresses: #8382

@adi2011 adi2011 requested a review from cdecker as a code owner July 22, 2025 09:18
@adi2011 adi2011 changed the title Peer storage enhancement Peer storage enhancements Jul 22, 2025
@madelinevibes
Copy link
Copy Markdown
Collaborator

fixes #8382

@madelinevibes
Copy link
Copy Markdown
Collaborator

@adi2011 can you rebase to prepare this for 25.12 please?

@adi2011
Copy link
Copy Markdown
Collaborator Author

adi2011 commented Oct 29, 2025

Hi @madelinevibes, sorry for the delay, I was AFK. I’ll try to complete this PR by the end of the week.

@madelinevibes madelinevibes added this to the v25.12 milestone Oct 30, 2025
@ShahanaFarooqui ShahanaFarooqui linked an issue Oct 31, 2025 that may be closed by this pull request
@adi2011 adi2011 force-pushed the peer-storage-enhancement branch 5 times, most recently from 3cdca8a to 32d4ada Compare November 3, 2025 09:15
@adi2011 adi2011 force-pushed the peer-storage-enhancement branch 2 times, most recently from da93170 to ad9078e Compare November 10, 2025 07:14
@rustyrussell rustyrussell modified the milestones: v25.12, v26.03 Nov 17, 2025
@rustyrussell
Copy link
Copy Markdown
Contributor

Because this needs review and it's been delayed, I'm going to move this back to the next milestone. Once rc1 is out I will try to find time for a thorough review!

@madelinevibes madelinevibes added the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label Dec 8, 2025
@adi2011 adi2011 force-pushed the peer-storage-enhancement branch 3 times, most recently from 7c15c58 to 8d8ab1b Compare January 28, 2026 08:04
@sangbida sangbida modified the milestones: v26.04, 26.06 Mar 18, 2026
@madelinevibes
Copy link
Copy Markdown
Collaborator

@adi2011 can you resolve the conflicts and clear CI by the end of this week so we can add this to 26.06? Release candidate planned for Monday 11 May.

If you can't we'll move it to 25.09

@rustyrussell rustyrussell force-pushed the peer-storage-enhancement branch from 8d8ab1b to d4cf859 Compare May 5, 2026 02:46
adi2011 added 2 commits May 5, 2026 12:20
Adding more information to geremergencyrecoverdata, to let users know if they are using
legacy file format and the list of all the backed up channel ids.

Key Changes:
 - Added:
   1. can_create_penalty: To let user know if they need to update the file.
   2. backed_up_channel_ids: List of all the backed up channels

Changelog-Changed: Made getemergencyrecoverdata more verbose.
Node should not store SCB that is older than what we already have.

Changelog-Fixed: Protocol: we now only store the most recent peer backup when recovering from peers.
@rustyrussell
Copy link
Copy Markdown
Contributor

Rebased, cleaned up a little.

@rustyrussell rustyrussell force-pushed the peer-storage-enhancement branch from d4cf859 to 830581c Compare May 5, 2026 02:55
@rustyrussell rustyrussell enabled auto-merge (rebase) May 5, 2026 02:56
@adi2011
Copy link
Copy Markdown
Collaborator Author

adi2011 commented May 5, 2026

Thank you @rustyrussell! 🧡

@sangbida sangbida disabled auto-merge May 7, 2026 02:36
@sangbida sangbida merged commit a1f907c into ElementsProject:master May 7, 2026
80 of 84 checks passed
@madelinevibes madelinevibes removed the Status::Ready for Review The work has been completed and is now awaiting evaluation or approval. label May 7, 2026
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.

Enhancements to peer backup restoration.

4 participants